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_handlers.go | |
| parent | 60df5f3a64e21d79ace622d87d1feef0d619c42f (diff) | |
Clean up some linter warnings
Diffstat (limited to 'hotline/transaction_handlers.go')
| -rw-r--r-- | hotline/transaction_handlers.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hotline/transaction_handlers.go b/hotline/transaction_handlers.go index 56f7afa..5a9ea5e 100644 --- a/hotline/transaction_handlers.go +++ b/hotline/transaction_handlers.go @@ -1293,7 +1293,7 @@ func HandleDelNewsItem(cc *ClientConn, t *Transaction) (res []Transaction, err e } } - if bytes.Compare(cats[delName].Type, []byte{0, 3}) == 0 { + if bytes.Equal(cats[delName].Type, []byte{0, 3}) { if !cc.Authorize(accessNewsDeleteCat) { return append(res, cc.NewErrReply(t, "You are not allowed to delete news categories.")), nil } |