Skip to content

Commit

Permalink
remove unnecesary await
Browse files Browse the repository at this point in the history
  • Loading branch information
benStre committed Jan 23, 2024
1 parent 7cae613 commit 2cf7e12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/storage_map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export class StorageWeakMap<K,V> {
async clear() {
const promises = [];
for (const key of await Storage.getItemKeysStartingWith(this._prefix)) {
promises.push(await Storage.removeItem(key));
promises.push(Storage.removeItem(key));
}
await Promise.all(promises);
}
Expand Down

0 comments on commit 2cf7e12

Please sign in to comment.