Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Nowell Strite committed Feb 22, 2023
1 parent 2c5c1e2 commit 5b455cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/playwright-test/src/experimentalLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ async function resolve(specifier: string, context: { parentURL?: string }, defau
specifier = url.pathToFileURL(resolved).toString();
}
const result = await defaultResolve(specifier, context, defaultResolve);
if (result?.url && result.url.startsWith("file://")) {
if (result?.url && result.url.startsWith("file://"))
currentFileDepsCollector()?.add(url.fileURLToPath(result.url));
}

return result;
}

Expand Down

0 comments on commit 5b455cd

Please sign in to comment.