Skip to content

Commit 4704027

Browse files
authored
fix: Return early if no migration is needed (#1502)
1 parent 0f0daf3 commit 4704027

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/storage/src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,9 @@ function createStorage(): WxtStorage {
379379
`Version downgrade detected (v${currentVersion} -> v${targetVersion}) for "${key}"`,
380380
);
381381
}
382+
if (currentVersion === targetVersion) {
383+
return;
384+
}
382385

383386
console.debug(
384387
`[@wxt-dev/storage] Running storage migration for ${key}: v${currentVersion} -> v${targetVersion}`,

0 commit comments

Comments
 (0)