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_handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hotline/transaction_handlers.go') 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 } -- cgit