Skip to content

Commit

Permalink
fix: user args check
Browse files Browse the repository at this point in the history
  • Loading branch information
withchao committed Dec 4, 2023
1 parent 0622ac7 commit af951d8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions internal/rpc/user/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit af951d8

Please sign in to comment.