Skip to content

Commit

Permalink
Rename blacklist to skipNames
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuildthecloud committed Aug 20, 2020
1 parent a173b50 commit eb176f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions types/reflection.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
var (
namespacedType = reflect.TypeOf(Namespaced{})
resourceType = reflect.TypeOf(Resource{})
blacklistNames = map[string]bool{
skipNames = map[string]bool{
"links": true,
"actions": true,
"managedFields": true,
Expand Down Expand Up @@ -273,8 +273,8 @@ func (s *Schemas) readFields(schema *Schema, t reflect.Type) error {
}
}

if blacklistNames[fieldName] {
logrus.Tracef("Ignoring blacklisted field %s.%s for %v", schema.ID, fieldName, field)
if skipNames[fieldName] {
logrus.Tracef("Ignoring skip field %s.%s for %v", schema.ID, fieldName, field)
continue
}

Expand Down

0 comments on commit eb176f0

Please sign in to comment.