Update templatefunc.go
This commit is contained in:
parent
7e15ea4169
commit
f4d4591962
@ -618,7 +618,9 @@ func eq(arg1 interface{}, arg2 ...interface{}) (bool, error) {
|
|||||||
default:
|
default:
|
||||||
return false, errBadComparison
|
return false, errBadComparison
|
||||||
}
|
}
|
||||||
return true, nil
|
if truth {
|
||||||
|
return true, nil
|
||||||
|
}
|
||||||
}
|
}
|
||||||
switch k1 {
|
switch k1 {
|
||||||
case boolKind:
|
case boolKind:
|
||||||
@ -636,7 +638,9 @@ func eq(arg1 interface{}, arg2 ...interface{}) (bool, error) {
|
|||||||
default:
|
default:
|
||||||
return false, errBadComparisonType
|
return false, errBadComparisonType
|
||||||
}
|
}
|
||||||
return truth, nil
|
if truth {
|
||||||
|
return true, nil
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return false, nil
|
return false, nil
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user