From af951d82084c26d55fd52fba9f81d384ede0c3d5 Mon Sep 17 00:00:00 2001 From: withchao <993506633@qq.com> Date: Mon, 4 Dec 2023 13:14:35 +0800 Subject: [PATCH] fix: user args check --- internal/rpc/user/user.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/internal/rpc/user/user.go b/internal/rpc/user/user.go index 176bc91a9..77da408aa 100644 --- a/internal/rpc/user/user.go +++ b/internal/rpc/user/user.go @@ -117,9 +117,6 @@ func (s *userServer) UpdateUserInfo(ctx context.Context, req *pbuser.UpdateUserI return nil, err } data := convert.UserPb2DBMap(req.UserInfo) - if len(data) == 0 { - return nil, errs.ErrArgs.Wrap("no data to update") - } if err := s.UpdateByMap(ctx, req.UserInfo.UserID, data); err != nil { return nil, err }