1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-04 12:52:28 +08:00

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

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: