File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -154,9 +154,6 @@ class EventObserver {
154
154
}
155
155
}
156
156
157
- const wait = ( ms : number ) : Promise < void > =>
158
- new Promise ( ( resolve ) => setTimeout ( resolve , ms ) ) ;
159
-
160
157
export const handleHardwareWalletRequests = async (
161
158
mainWindow : BrowserWindow ,
162
159
{
@@ -282,13 +279,11 @@ export const handleHardwareWalletRequests = async (
282
279
logger . info ( '[HW-DEBUG] getHardwareWalletTransportChannel' , {
283
280
devicePath,
284
281
} ) ;
285
- // Connected Trezor device info
286
- let deviceFeatures : Unsuccessful | Success < Features > ;
287
282
288
283
if ( isTrezor ) {
289
284
logger . info ( '[HW-DEBUG] getHardwareWalletTransportChannel::TREZOR ' ) ;
290
285
291
- deviceFeatures = await getTrezorDeviceFeatures ( ) ;
286
+ const deviceFeatures = await getTrezorDeviceFeatures ( ) ;
292
287
293
288
try {
294
289
logger . info ( '[TREZOR-CONNECT] Called TrezorConnect.getFeatures()' ) ;
@@ -883,13 +878,6 @@ export const handleHardwareWalletRequests = async (
883
878
884
879
resetTrezorActionChannel . onRequest ( async ( ) => {
885
880
logger . info ( '[TREZOR-CONNECT] Called TrezorConnect.cancel()' ) ;
886
-
887
- try {
888
- TrezorConnect . cancel ( ) ;
889
- } catch ( error ) {
890
- logger . warn (
891
- '[TREZOR-CONNECT] Failed to cancel the operation:' + error . error
892
- ) ;
893
- }
881
+ TrezorConnect . cancel ( ) ;
894
882
} ) ;
895
883
} ;
You can’t perform that action at this time.
0 commit comments