* fixed: `identifier` is unused lint error

* make saveMultipleMembersT method saveMultipleMembers

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
Mahmudul Haque
2021-02-04 11:38:05 +06:00
коммит произвёл GitHub
родитель 78ccf8a775
Коммит a63dea6c55
62 изменённых файлов: 257 добавлений и 245 удалений

Просмотреть файл

@@ -334,6 +334,7 @@ func userDeactivateCmdF(command *cobra.Command, args []string) error {
return nil
}
//nolint:unparam
func userCreateCmdF(command *cobra.Command, args []string) error {
a, err := InitDBCommandContextCobra(command)
if err != nil {
@@ -426,7 +427,7 @@ func usersToBots(args []string, a *app.App) {
}
}
func getUpdatedPassword(command *cobra.Command, a *app.App, user *model.User) (string, error) {
func getUpdatedPassword(command *cobra.Command) (string, error) {
password, err := command.Flags().GetString("password")
if err != nil {
return "", fmt.Errorf("Unable to read password. Error: %s", err.Error())
@@ -500,7 +501,7 @@ func botToUser(command *cobra.Command, args []string, a *app.App) error {
return fmt.Errorf("Unable to find bot. Error: %s", appErr.Error())
}
password, err := getUpdatedPassword(command, a, user)
password, err := getUpdatedPassword(command)
if err != nil {
return err
}