From 1efdf7fe5746ae86adfd810d0046b22fb68ea47b Mon Sep 17 00:00:00 2001 From: Michael Bulanov <72828450+mike76-dev@users.noreply.github.com> Date: Sat, 6 Jan 2024 18:02:49 +0100 Subject: [PATCH] Remove unreachable code check() already calls log.Fatal if err != nil, so this code is redundant --- cmd/walletd/main.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/cmd/walletd/main.go b/cmd/walletd/main.go index da11cc1..0223e0d 100644 --- a/cmd/walletd/main.go +++ b/cmd/walletd/main.go @@ -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