mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-03 19:02:31 +08:00
fix lint on processusercommand
This commit is contained in:
parent
566cd5528f
commit
45c4173660
@ -402,7 +402,10 @@ func (s *userServer) ProcessUserCommandAdd(ctx context.Context, req *pbuser.Proc
|
|||||||
FromUserID: req.UserID,
|
FromUserID: req.UserID,
|
||||||
ToUserID: req.UserID,
|
ToUserID: req.UserID,
|
||||||
}
|
}
|
||||||
s.userNotificationSender.UserCommandAddNotification(ctx, tips)
|
err = s.userNotificationSender.UserCommandAddNotification(ctx, tips)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
return &pbuser.ProcessUserCommandAddResp{}, nil
|
return &pbuser.ProcessUserCommandAddResp{}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -421,7 +424,10 @@ func (s *userServer) ProcessUserCommandDelete(ctx context.Context, req *pbuser.P
|
|||||||
FromUserID: req.UserID,
|
FromUserID: req.UserID,
|
||||||
ToUserID: req.UserID,
|
ToUserID: req.UserID,
|
||||||
}
|
}
|
||||||
s.userNotificationSender.UserCommandDeleteNotification(ctx, tips)
|
err = s.userNotificationSender.UserCommandDeleteNotification(ctx, tips)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
return &pbuser.ProcessUserCommandDeleteResp{}, nil
|
return &pbuser.ProcessUserCommandDeleteResp{}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -450,7 +456,10 @@ func (s *userServer) ProcessUserCommandUpdate(ctx context.Context, req *pbuser.P
|
|||||||
FromUserID: req.UserID,
|
FromUserID: req.UserID,
|
||||||
ToUserID: req.UserID,
|
ToUserID: req.UserID,
|
||||||
}
|
}
|
||||||
s.userNotificationSender.UserCommandUpdateNotification(ctx, tips)
|
err = s.userNotificationSender.UserCommandUpdateNotification(ctx, tips)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
return &pbuser.ProcessUserCommandUpdateResp{}, nil
|
return &pbuser.ProcessUserCommandUpdateResp{}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user