Update templatefunc.go
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user