Update templatefunc.go
This commit is contained in:
@@ -618,8 +618,10 @@ func eq(arg1 interface{}, arg2 ...interface{}) (bool, error) {
|
|||||||
default:
|
default:
|
||||||
return false, errBadComparison
|
return false, errBadComparison
|
||||||
}
|
}
|
||||||
|
if truth {
|
||||||
return true, nil
|
return true, nil
|
||||||
}
|
}
|
||||||
|
}
|
||||||
switch k1 {
|
switch k1 {
|
||||||
case boolKind:
|
case boolKind:
|
||||||
truth = v1.Bool() == v2.Bool()
|
truth = v1.Bool() == v2.Bool()
|
||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user