good morning!!!!

Skip to content
Snippets Groups Projects
Commit 2fa9e99f authored by Corey Lin's avatar Corey Lin Committed by Péter Szilágyi
Browse files

usbwallet: check error returned by driver close (#18057)

Although current two implementations(ledgerDriver, trezorDriver) of interface driver.Close do not actually return any error. Instead, they only return nil.
But since the declaration of Close function returns error, it is better to check the returned error in case in future some new implementation of Close function returns error and we may forget to modify the function which invokes Close function at that time.
parent 5f94f8c7
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment