mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-08 18:51:19 +00:00
Remove one time variable and change capital ization
Former-commit-id: 424d1f536fbc46002c37df35a582de3772405c29 [formerly 534eab56faf5379970b8018d8db9c46789df34b1] Former-commit-id: 993b362bffb8d5b3ec6019137cc324d078e989e3
This commit is contained in:
parent
8376b28a33
commit
58bfae12ca
@ -126,13 +126,12 @@ func (c *Client) unlockAccount(account accounts.Account) error {
|
||||
}
|
||||
scanner := bufio.NewScanner(file)
|
||||
scanner.Split(bufio.ScanWords)
|
||||
passwordSuccess := scanner.Scan()
|
||||
if !passwordSuccess {
|
||||
if !scanner.Scan() {
|
||||
err = scanner.Err()
|
||||
if err != nil {
|
||||
return fmt.Errorf("unable to read contents of file %v", err)
|
||||
}
|
||||
return fmt.Errorf("Password Not Found in file")
|
||||
return fmt.Errorf("password not found in file")
|
||||
}
|
||||
|
||||
pass = scanner.Text()
|
||||
|
Loading…
Reference in New Issue
Block a user