Update templatefunc.go

This commit is contained in:
jianzhiyao 2021-05-18 18:30:30 +08:00 committed by GitHub
parent 7655b3faa9
commit 3985ce8159
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -636,7 +636,7 @@ func eq(arg1 interface{}, arg2 ...interface{}) (bool, error) {
case uintKind:
truth = v1.Uint() == v2.Uint()
default:
return false, errBadComparisonType
panic("invalid kind")
}
if truth {
return true, nil