Skip to content

Commit aa79390

Browse files
committed
chore: cosmetic
1 parent 43c238b commit aa79390

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

packages/snap-account-service/src/SnapAccountService.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ export class SnapAccountService {
323323

324324
// We still try to create the keyring for the Snap here, since we might
325325
// want to use a new Snap that never had accounts before.
326-
await this.#createKeyringForSnap(snapId);
326+
await this.#ensureKeyringIsReady(snapId);
327327

328328
// Before doing anything with our Snap, we need to make sure the platform
329329
// is ready to process requests.
@@ -413,12 +413,12 @@ export class SnapAccountService {
413413
}
414414

415415
/**
416-
* Creates a Snap keyring for the given Snap if it doesn't exist yet using
417-
* a safe "get or create" pattern. Safe to call concurrently.
416+
* Ensures a Snap keyring is ready for the given Snap. If it doesn't exist yet, it will be created.
417+
* Safe to call concurrently.
418418
*
419-
* @param snapId - The Snap ID to create the keyring for.
419+
* @param snapId - The Snap ID to ensure the keyring is ready for.
420420
*/
421-
async #createKeyringForSnap(snapId: SnapId): Promise<void> {
421+
async #ensureKeyringIsReady(snapId: SnapId): Promise<void> {
422422
await this.#messenger.call(
423423
'KeyringController:withController',
424424
async (controller) => {

0 commit comments

Comments
 (0)