Skip to content

Commit

Permalink
panic debug bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed Feb 14, 2024
1 parent 1ca92d0 commit b5b522a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion flow/model/qvalue/qvalue.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,10 @@ func compareBytes(value1, value2 interface{}) bool {
bytes1, ok1 := getBytes(value1)
bytes2, ok2 := getBytes(value2)

return ok1 && ok2 && (len(bytes1) == len(bytes2) || bytes.Equal(bytes1, bytes2))
if ok1 && ok2 && ((len(bytes1) == 0 && len(bytes2) == 0) || bytes.Equal(bytes1, bytes2)) {
return true
}
panic(fmt.Sprintf("ASDF %v:%v, %T %v <> %T %v", ok1, ok2, value1, value1, value2, value2))
}

func compareNumeric(value1, value2 interface{}) bool {
Expand Down

0 comments on commit b5b522a

Please sign in to comment.