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 2, 2020
1 parent 360e435 commit 2c8a193
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/crd/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ func removeDefaultsFromSchemaProps(v *apiextlegacy.JSONSchemaProps) {
// nil-out the default field
v.Default = nil
for name, prop := range v.Properties {
prop := prop
removeDefaultsFromSchemaProps(&prop)
v.Properties[name] = prop
}
Expand Down

0 comments on commit 2c8a193

Please sign in to comment.