From 043c00da52efd5b7d9ef15750945ee55e6f78e7a Mon Sep 17 00:00:00 2001 From: Jeff Halter <868228+jhalter@users.noreply.github.com> Date: Thu, 15 Sep 2022 13:51:37 -0700 Subject: Clean up some linter warnings --- hotline/transaction.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '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}) } -- cgit