Skip to content

Commit

Permalink
Fix the bug in the utils.go file
Browse files Browse the repository at this point in the history
  • Loading branch information
demdxx committed Mar 10, 2024
1 parent a6978a9 commit bac4904
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func IsEmptyByReflection(v reflect.Value) bool {
return true
}
switch v.Kind() {
case reflect.Interface:
case reflect.Interface, reflect.Pointer:
return v.IsNil()
case reflect.Bool:
return !v.Bool()
Expand Down

0 comments on commit bac4904

Please sign in to comment.