chore: use bytes.Equal instead (#144)

This commit is contained in:
guangwu
2023-11-16 15:26:20 +08:00
committed by GitHub
parent e25b53712b
commit 31c618c187
+1 -1
View File
@@ -70,7 +70,7 @@ func compareRefValue(operator string, leftObj, rightObj any, kind reflect.Kind)
switch operator {
case equal:
if bytes.Compare(bytesObj1, bytesObj2) == 0 {
if bytes.Equal(bytesObj1, bytesObj2) {
return true
}
case lessThan: