Skip to content

Commit

Permalink
missing error check
Browse files Browse the repository at this point in the history
  • Loading branch information
Pablo RUTH committed Jun 17, 2024
1 parent 9737731 commit 77cf358
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/hash.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ var hashCmd = &cobra.Command{

fmt.Printf("\nDo you want to use One Time Codes e.g. Google authenticator? (Y/N) ")
var useOtp string
fmt.Scanln(&useOtp)
_, err = fmt.Scanln(&useOtp)
if err != nil {
return err
}

if useOtp == "Y" || useOtp == "y" {
seed := util.GenerateSeed()
Expand Down

0 comments on commit 77cf358

Please sign in to comment.