unparam lint (#16771)
* fixed: `identifier` is unused lint error * make saveMultipleMembersT method saveMultipleMembers Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
78ccf8a775
Коммит
a63dea6c55
@@ -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
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user