Skip to content

Commit 9a10d6e

Browse files
committed
chore: Fix "marshalled" typo
Signed-off-by: James Alseth <james@jalseth.me>
1 parent 4867c5e commit 9a10d6e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

internal/commands/create.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -403,15 +403,15 @@ func setMatchLabelsMatcher(constraint *unstructured.Unstructured, matcher rego.M
403403
}
404404

405405
func setMatchExpressionsMatcher(constraint *unstructured.Unstructured, matcher []rego.MatchExpressionMatcher) error {
406-
marshalled, err := json.Marshal(matcher)
406+
marshaled, err := json.Marshal(matcher)
407407
if err != nil {
408408
return err
409409
}
410-
var unmarshalled []interface{}
411-
if err := json.Unmarshal(marshalled, &unmarshalled); err != nil {
410+
var unmarshaled []interface{}
411+
if err := json.Unmarshal(marshaled, &unmarshaled); err != nil {
412412
return err
413413
}
414-
return unstructured.SetNestedSlice(constraint.Object, unmarshalled, "spec", "match", "labelSelector", "matchExpressions")
414+
return unstructured.SetNestedSlice(constraint.Object, unmarshaled, "spec", "match", "labelSelector", "matchExpressions")
415415
}
416416

417417
func setNestedStringSlice(constraint *unstructured.Unstructured, slice []string, path ...string) error {

0 commit comments

Comments
 (0)