replace more .Value.String() occurences
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
committed by
Florian Schade
parent
032c218789
commit
d0e51010bf
@@ -35,7 +35,8 @@ func ResetPassword(cfg *config.Config) *cobra.Command {
|
||||
ctx, cancel := context.WithCancel(cmd.Context())
|
||||
|
||||
defer cancel()
|
||||
return resetPassword(ctx, logger, cfg, cmd.Flag("user-name").Value.String())
|
||||
userNameFlag, _ := cmd.Flags().GetString("user-name")
|
||||
return resetPassword(ctx, logger, cfg, userNameFlag)
|
||||
},
|
||||
}
|
||||
resetPasswordCmd.Flags().StringP(
|
||||
|
||||
Reference in New Issue
Block a user