Update templatefunc.go

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

View File

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