Skip to content

Commit 33a5889

Browse files
committed
refactor: update comment
1 parent 6137740 commit 33a5889

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/account-tree-controller/src/AccountTreeController.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -662,8 +662,7 @@ export class AccountTreeController extends BaseController<
662662
return;
663663
}
664664

665-
// Check if this account got already added by `#initAtLeastOnce`, if not, then we
666-
// can proceed.
665+
// Check if this account is already known by the tree to avoid double-insertion.
667666
if (!this.#accountIdToContext.has(account.id)) {
668667
this.update((state) => {
669668
this.#insert(state.accountTree.wallets, account);

0 commit comments

Comments
 (0)