Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
letu 2021-05-14 22:57:57 +08:00
commit 402531d68a

View File

@ -618,7 +618,10 @@ func eq(arg1 interface{}, arg2 ...interface{}) (bool, error) {
default:
return false, errBadComparison
}
} else {
if truth {
return true, nil
}
}
switch k1 {
case boolKind:
truth = v1.Bool() == v2.Bool()
@ -633,8 +636,7 @@ func eq(arg1 interface{}, arg2 ...interface{}) (bool, error) {
case uintKind:
truth = v1.Uint() == v2.Uint()
default:
panic("invalid kind")
}
return false, errBadComparisonType
}
if truth {
return true, nil