Skip to content

Commit

Permalink
Patch
Browse files Browse the repository at this point in the history
  • Loading branch information
billytrend-cohere committed Feb 7, 2024
1 parent e5ff9d8 commit 898dc7e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,10 @@ func isEmptyValue(v reflect.Value) bool {
IsZero() bool
}

if z, ok := v.Interface().(zeroable); ok {
return z.IsZero()
if !v.IsNil() {
if z, ok := v.Interface().(zeroable); ok {
return z.IsZero()
}
}

switch v.Kind() {
Expand Down

0 comments on commit 898dc7e

Please sign in to comment.