From: Jeff Halter Date: Wed, 22 Jun 2022 23:26:37 +0000 (-0700) Subject: Remove unneeded code X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/commitdiff_plain/db484a6c604d17a3df5c9ce10c12d56347e2fc40?ds=inline Remove unneeded code --- diff --git a/hotline/client_conn.go b/hotline/client_conn.go index 997b9c9..5780f6d 100644 --- a/hotline/client_conn.go +++ b/hotline/client_conn.go @@ -156,10 +156,6 @@ func (cc *ClientConn) uint16ID() uint16 { // Authorize checks if the user account has the specified permission func (cc *ClientConn) Authorize(access int) bool { - if access == 0 { - return true - } - i := big.NewInt(int64(binary.BigEndian.Uint64(*cc.Account.Access))) return i.Bit(63-access) == 1