Skip to content

Commit d827fe8

Browse files
committed
Fix gosec lint issue
1 parent 063eaf8 commit d827fe8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/crd/gen.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,8 @@ func removeDefaultsFromSchemaProps(v *apiextlegacy.JSONSchemaProps) {
209209
// nil-out the default field
210210
v.Default = nil
211211
for name, prop := range v.Properties {
212+
// iter var reference is fine -- we handle the persistence of the modfications on the line below
213+
//nolint:gosec
212214
removeDefaultsFromSchemaProps(&prop)
213215
v.Properties[name] = prop
214216
}

0 commit comments

Comments
 (0)