mirror of
https://github.com/MontFerret/ferret.git
synced 2025-05-31 23:09:43 +02:00
Removed redundant nil check
This commit is contained in:
parent
d92d97da89
commit
08b5f53451
@ -218,10 +218,6 @@ func Parse(input interface{}) core.Value {
|
|||||||
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