Skip to content

Commit f3e8de0

Browse files
author
Israel Blancas
committed
Remove not needed copy
Signed-off-by: Israel Blancas <[email protected]>
1 parent 6049ced commit f3e8de0

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

apis/v1beta1/config.go

+1-6
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,7 @@ func (c AnyConfig) MarshalJSON() ([]byte, error) {
9595
return []byte("{}"), nil
9696
}
9797

98-
nonNilMap := make(map[string]interface{}, len(c.Object))
99-
for k, v := range c.Object {
100-
nonNilMap[k] = v
101-
}
102-
103-
return json.Marshal(nonNilMap)
98+
return json.Marshal(c.Object)
10499
}
105100

106101
// Pipeline is a struct of component type to a list of component IDs.

0 commit comments

Comments
 (0)