diff options
| author | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2022-09-15 13:51:37 -0700 |
|---|---|---|
| committer | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2022-09-15 13:51:37 -0700 |
| commit | 043c00da52efd5b7d9ef15750945ee55e6f78e7a (patch) | |
| tree | 49f0e2c05ef9d28bc64419b799da99dcef8b206d /hotline/transaction.go | |
| parent | 60df5f3a64e21d79ace622d87d1feef0d619c42f (diff) | |
Clean up some linter warnings
Diffstat (limited to 'hotline/transaction.go')
| -rw-r--r-- | hotline/transaction.go | 2 |
1 files changed, 1 insertions, 1 deletions
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}) } |