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`
This commit is contained in:
Richard van der Hoff 2023-04-05 19:19:56 +01:00
parent fce771c22a
commit a5b281bf5e

View file

@ -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 }}