]> git.codecow.com Git - libnemo.git/commitdiff
Eliminate redundant code.
authorChris Duncan <chris@zoso.dev>
Sat, 26 Jul 2025 08:07:36 +0000 (01:07 -0700)
committerChris Duncan <chris@zoso.dev>
Sat, 26 Jul 2025 08:07:36 +0000 (01:07 -0700)
src/lib/wallets/ledger-wallet.ts

index e9f01cdc131b2f59dd6d7d33ddf4c5bae6b7ef15..cd5c947f8368409c8d7e69ea70a0ad5adb580000 100644 (file)
@@ -176,8 +176,7 @@ export class LedgerWallet extends Wallet {
                try {\r
                        id = id.replace('Ledger_', '')\r
                        LedgerWallet.#isInternal = true\r
-                       const wallet = new this(await Entropy.import(id))\r
-                       return wallet\r
+                       return new this(await Entropy.import(id))\r
                } catch (err) {\r
                        console.error(err)\r
                        throw new Error('failed to restore wallet', { cause: err })\r