mirror of
https://github.com/MontFerret/ferret.git
synced 2025-05-27 22:57:54 +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
|
||||
case []byte:
|
||||
return NewBinary(input.([]byte))
|
||||
case nil:
|
||||
return None
|
||||
case nil:
|
||||
return None
|
||||
default:
|
||||
if core.IsNil(input) {
|
||||
return None
|
||||
}
|
||||
|
||||
v := reflect.ValueOf(input)
|
||||
t := reflect.TypeOf(input)
|
||||
kind := t.Kind()
|
||||
|
Loading…
x
Reference in New Issue
Block a user