Skip to content

Commit

Permalink
Fix gosec lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kevindelgado committed Oct 14, 2020
1 parent 063eaf8 commit d827fe8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/crd/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ func removeDefaultsFromSchemaProps(v *apiextlegacy.JSONSchemaProps) {
// nil-out the default field
v.Default = nil
for name, prop := range v.Properties {
// iter var reference is fine -- we handle the persistence of the modfications on the line below
//nolint:gosec
removeDefaultsFromSchemaProps(&prop)
v.Properties[name] = prop
}
Expand Down

0 comments on commit d827fe8

Please sign in to comment.