]> git.codecow.com Git - libnemo.git/commitdiff
Remove redundant check.
authorChris Duncan <chris@zoso.dev>
Wed, 20 Aug 2025 20:22:49 +0000 (13:22 -0700)
committerChris Duncan <chris@zoso.dev>
Wed, 20 Aug 2025 20:22:49 +0000 (13:22 -0700)
src/lib/wallet/sign.ts

index c36326d6d8bd5c282070d5785c274bb2181131fd..0148a965a9c4ca436274690a9aa058711a0dd952 100644 (file)
@@ -18,7 +18,7 @@ export async function _sign (wallet: Wallet, vault: Vault, index: unknown, block
                }
                if (wallet.type === 'Ledger') {
                        const account = await wallet.account(index)
-                       if (frontier && frontier instanceof Block) {
+                       if (frontier instanceof Block) {
                                try {
                                        await Ledger.updateCache(index, frontier)
                                } catch (err) {