Skip to content

Commit

Permalink
simplify ScalarArrayKind IsNillable
Browse files Browse the repository at this point in the history
  • Loading branch information
nasdf committed Apr 19, 2024
1 parent 8a71b16 commit 2690568
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions client/schema_field_description.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,14 +154,7 @@ func (k ScalarArrayKind) Underlying() string {
}

func (k ScalarArrayKind) IsNillable() bool {
return k == FieldKind_BOOL_ARRAY ||
k == FieldKind_INT_ARRAY ||
k == FieldKind_FLOAT_ARRAY ||
k == FieldKind_STRING_ARRAY ||
k == FieldKind_NILLABLE_BOOL_ARRAY ||
k == FieldKind_NILLABLE_INT_ARRAY ||
k == FieldKind_NILLABLE_FLOAT_ARRAY ||
k == FieldKind_NILLABLE_STRING_ARRAY
return true
}

func (k ScalarArrayKind) IsObject() bool {
Expand Down

0 comments on commit 2690568

Please sign in to comment.