From 1956955bf2cf18b1ec766beac2c44ffe79e8bd7c Mon Sep 17 00:00:00 2001 From: Vicky Date: Wed, 18 Feb 2026 23:06:27 +0800 Subject: [PATCH] cmd/geth: remove unreachable check in readPasswordFromFile --- cmd/geth/accountcmd.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/cmd/geth/accountcmd.go b/cmd/geth/accountcmd.go index b564fa3b57..3c776d773a 100644 --- a/cmd/geth/accountcmd.go +++ b/cmd/geth/accountcmd.go @@ -232,9 +232,6 @@ func readPasswordFromFile(path string) (string, bool) { utils.Fatalf("Failed to read password file: %v", err) } lines := strings.Split(string(text), "\n") - if len(lines) == 0 { - return "", false - } // Sanitise DOS line endings. return strings.TrimRight(lines[0], "\r"), true }