Skip to content

Commit

Permalink
fix lint issue
Browse files Browse the repository at this point in the history
Signed-off-by: Jeeva Kandasamy <[email protected]>
  • Loading branch information
jkandasa committed Jun 15, 2024
1 parent c161996 commit 617ab65
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cmd/client/command/root/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,12 @@ var logoutCmd = &cobra.Command{
}

func promptUsername() (string, error) {
_, err := fmt.Fprint(IOStreams.Out, "Username: ")
var username string
fmt.Fscanln(IOStreams.In, &username)
_, err := fmt.Fprint(IOStreams.Out, "Username: ")
if err != nil {
return username, err
}
_, err = fmt.Fscanln(IOStreams.In, &username)
return username, err
}

Expand Down

0 comments on commit 617ab65

Please sign in to comment.