Remove one time variable and change capital ization

Former-commit-id: 424d1f536fbc46002c37df35a582de3772405c29 [formerly 534eab56faf5379970b8018d8db9c46789df34b1]
Former-commit-id: 993b362bffb8d5b3ec6019137cc324d078e989e3
This commit is contained in:
nisdas 2018-02-27 22:43:58 +08:00
parent 8376b28a33
commit 58bfae12ca

View File

@ -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()