1
0
mirror of https://github.com/writeas/writeas-cli synced 2025-07-26 23:08:16 +00:00

commands: Remove redundant string() cast on pass

When logging in we had a cast that was made redundant, since
`pass` is now a string.
This commit is contained in:
Christopher Davis 2019-10-08 18:34:37 -07:00
parent f2bb9f5896
commit bd378a85ad

View File

@ -429,7 +429,7 @@ func CmdAuth(c *cli.Context) error {
} else {
log.Info(c, "Logging in...")
}
err = api.DoLogIn(c, username, string(pass))
err = api.DoLogIn(c, username, pass)
if err != nil {
return cli.NewExitError(fmt.Sprintf("error logging in: %v", err), 1)
}