Skip to content

Commit

Permalink
fix: exhaustive switch
Browse files Browse the repository at this point in the history
  • Loading branch information
katallaxie authored Jan 15, 2025
1 parent 7cb23db commit ef462a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions reflectx/value.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package reflectx
import "reflect"

func IsEmptyValue(v reflect.Value) bool {
// nolint:exhaustive
switch v.Kind() {
case reflect.Array, reflect.Map, reflect.Slice, reflect.String:
return v.Len() == 0
Expand Down

0 comments on commit ef462a5

Please sign in to comment.