Skip to content

Commit

Permalink
skip boolean nil check
Browse files Browse the repository at this point in the history
  • Loading branch information
colindickson committed Aug 5, 2023
1 parent 20f6cda commit fa82b28
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions csvprocessor/entity.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ func (e *Entity) ValidateFields(desc *schema.EntityDesc) error {
return nil
}

if field.Type == "Boolean" {
return nil
}

return fmt.Errorf("field %q cannot be nil on entity %s at ID %s", field.Name, field.Type, e.Fields["id"])
}
}
Expand Down

0 comments on commit fa82b28

Please sign in to comment.