From a5b471c50c2f504427c2066dfabe0a02960771e0 Mon Sep 17 00:00:00 2001 From: Monet Lee Date: Wed, 12 Jun 2024 17:56:35 +0800 Subject: [PATCH] fix: remove unnecessary contents. --- internal/rpc/auth/auth.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/internal/rpc/auth/auth.go b/internal/rpc/auth/auth.go index 486611e71..320fb1d52 100644 --- a/internal/rpc/auth/auth.go +++ b/internal/rpc/auth/auth.go @@ -178,9 +178,6 @@ func (s *authServer) forceKickOff(ctx context.Context, userID string, platformID if err != nil && err != redis.Nil { return err } - if m == nil { - return errs.New("token map is empty").Wrap() - } for k := range m { m[k] = constant.KickedToken log.ZDebug(ctx, "set token map is ", "token map", m, "userID",