Update templatefunc.go

This commit is contained in:
jianzhiyao
2021-05-18 18:29:20 +08:00
committed by GitHub
parent 402531d68a
commit 7655b3faa9

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