mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 19:00:46 +00:00
cmd/geth: remove unreachable check in readPasswordFromFile
This commit is contained in:
parent
01fe1d716c
commit
1956955bf2
1 changed files with 0 additions and 3 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue