From a5b281bf5e6fd2f8f2c57f406542ce894cfd7b40 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Wed, 5 Apr 2023 19:19:56 +0100 Subject: [PATCH] Remove redundant call to `clean-object` We already clean the object when we add it to `$more_objects` (at line 40), so no need to do it again when copying it to `$additional_objects` --- layouts/partials/json-schema/resolve-additional-types.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/json-schema/resolve-additional-types.html b/layouts/partials/json-schema/resolve-additional-types.html index a8f25be4..6e7a2d9f 100644 --- a/layouts/partials/json-schema/resolve-additional-types.html +++ b/layouts/partials/json-schema/resolve-additional-types.html @@ -116,8 +116,8 @@ {{/* As far as I know we don't have something like Array.concat(), so add them one at a time */}} - {{ range $more_objects}} - {{ $additional_objects = $additional_objects | append (partial "clean-object" .) }} + {{ range $more_objects }} + {{ $additional_objects = $additional_objects | append . }} {{ end }} {{ return $additional_objects }} {{ end }}