cmd/geth: remove unreachable check in readPasswordFromFile

This commit is contained in:
Vicky 2026-02-18 23:06:27 +08:00
parent 01fe1d716c
commit 1956955bf2

View file

@ -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
}