mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 09:53:48 +00:00
refactor: unify the error handling methods in the crypto package that are different from the project style
Signed-off-by: ChengenH <hce19970702@gmail.com>
This commit is contained in:
parent
d41590a78c
commit
daad49051e
1 changed files with 1 additions and 1 deletions
|
|
@ -923,7 +923,7 @@ func testExternalUI(api *core.SignerAPI) {
|
|||
}
|
||||
}
|
||||
expectApprove := func(testcase string, err error) {
|
||||
if errors.Is(err, accounts.ErrUnknownAccount) {
|
||||
if err == nil || errors.Is(err, accounts.ErrUnknownAccount) {
|
||||
return
|
||||
}
|
||||
addErr(fmt.Sprintf("%v: expected no error, got %v", testcase, err.Error()))
|
||||
|
|
|
|||
Loading…
Reference in a new issue