Skip to content

Commit

Permalink
fix: simplify initizlization
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillzyusko committed Mar 1, 2024
1 parent 9deedf3 commit ae2aee1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/storage/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ const Storage: Storage = {
* and enables fallback providers if necessary
*/
init() {
tryOrDegradePerformance(() => {
provider.init();
}).finally(() => {
tryOrDegradePerformance(provider.init).finally(() => {
finishInitalization();
});
},
Expand Down

0 comments on commit ae2aee1

Please sign in to comment.