diff --git a/reflect.go b/reflect.go index c719b52..cd80be7 100644 --- a/reflect.go +++ b/reflect.go @@ -45,9 +45,8 @@ func cardinalityOf(t reflect.Type) (cardinality, error) { if scalar.CanParse(t) { if isBoolean(t) { return zero, nil - } else { - return one, nil } + return one, nil } // look inside pointer types