Fix lint errors in modified code in the /pkg directory (#1962)

* /pkg-make lint

Signed-off-by: longyuqing112 <105913803+longyuqing112@users.noreply.github.com>

* /pkg_make_lint

Signed-off-by: longyuqing112 <105913803+longyuqing112@users.noreply.github.com>

---------

Signed-off-by: longyuqing112 <105913803+longyuqing112@users.noreply.github.com>
This commit is contained in:
longyuqing112
2024-02-27 22:12:01 +08:00
committed by GitHub
parent ac8775827d
commit 2becd46bdd
8 changed files with 31 additions and 15 deletions
+4 -4
View File
@@ -71,7 +71,7 @@ func NewUserNotificationSender(
return f
}
func (u *UserNotificationSender) getUsersInfoMap(
/* func (u *UserNotificationSender) getUsersInfoMap(
ctx context.Context,
userIDs []string,
) (map[string]*sdkws.UserInfo, error) {
@@ -84,9 +84,9 @@ func (u *UserNotificationSender) getUsersInfoMap(
result[user.GetUserID()] = user.(*sdkws.UserInfo)
}
return result, nil
}
} */
func (u *UserNotificationSender) getFromToUserNickname(
/* func (u *UserNotificationSender) getFromToUserNickname(
ctx context.Context,
fromUserID, toUserID string,
) (string, string, error) {
@@ -95,7 +95,7 @@ func (u *UserNotificationSender) getFromToUserNickname(
return "", "", nil
}
return users[fromUserID].Nickname, users[toUserID].Nickname, nil
}
} */
func (u *UserNotificationSender) UserStatusChangeNotification(
ctx context.Context,