X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/blobdiff_plain/854a92fc2755ace61c405df335ddf69b02a3d932..e2de9d02db38ff188fea569a5b98071a6bd403ea:/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}) }