mirror of
https://github.com/MontFerret/ferret.git
synced 2025-05-29 23:07:59 +02:00
Removed redundant nil check
This commit is contained in:
parent
d92d97da89
commit
08b5f53451
@ -215,13 +215,9 @@ func Parse(input interface{}) core.Value {
|
|||||||
return obj
|
return obj
|
||||||
case []byte:
|
case []byte:
|
||||||
return NewBinary(input.([]byte))
|
return NewBinary(input.([]byte))
|
||||||
case nil:
|
case nil:
|
||||||
return None
|
return None
|
||||||
default:
|
default:
|
||||||
if core.IsNil(input) {
|
|
||||||
return None
|
|
||||||
}
|
|
||||||
|
|
||||||
v := reflect.ValueOf(input)
|
v := reflect.ValueOf(input)
|
||||||
t := reflect.TypeOf(input)
|
t := reflect.TypeOf(input)
|
||||||
kind := t.Kind()
|
kind := t.Kind()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user