X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/blobdiff_plain/854a92fc2755ace61c405df335ddf69b02a3d932..b22a7e4ddf4f2975786881174dfc21fa35555d7d:/hotline/transaction.go?ds=sidebyside diff --git a/hotline/transaction.go b/hotline/transaction.go index 9800be3..8d7d9ed 100644 --- a/hotline/transaction.go +++ b/hotline/transaction.go @@ -240,5 +240,5 @@ func (t *Transaction) GetField(id int) Field { } func (t *Transaction) IsError() bool { - return bytes.Compare(t.ErrorCode, []byte{0, 0, 0, 1}) == 0 + return bytes.Equal(t.ErrorCode, []byte{0, 0, 0, 1}) }