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