Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangruber committed Feb 18, 2025
1 parent 7be2b2c commit dabd693
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/migrate.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ const exists = async path => {
export const maybeMigrateRuntimeState = async () => {
const newRuntimeStatePath = paths.runtimeState
const oldRuntimeStatePath = join(getOldStateRoot(), 'modules')
if (!(await exists(newRuntimeStatePath)) && await exists(oldRuntimeStatePath)) {
const hasNewState = await exists(newRuntimeStatePath)
const hasOldState = await exists(oldRuntimeStatePath)
if (!hasNewState && hasOldState) {
console.error(
`Migrating runtime state files from ${oldRuntimeStatePath} to ${newRuntimeStatePath}`
)
Expand Down

0 comments on commit dabd693

Please sign in to comment.