Skip to content

Commit

Permalink
Remove unreachable code
Browse files Browse the repository at this point in the history
check() already calls log.Fatal if err != nil, so this code is redundant
  • Loading branch information
mike76-dev authored Jan 6, 2024
1 parent d35d32b commit 1efdf7f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cmd/walletd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ func getAPIPassword() string {
pw, err := term.ReadPassword(int(os.Stdin.Fd()))
fmt.Println()
check("Could not read API password:", err)
if err != nil {
log.Fatal(err)
}
apiPassword = string(pw)
}
return apiPassword
Expand Down

0 comments on commit 1efdf7f

Please sign in to comment.