Skip to content

Commit

Permalink
chore: apply automated lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Oct 17, 2023
1 parent f5c4537 commit cbda020
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/listen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,11 @@ export async function listen(
};

if (serverOptions.path) {
let _path = serverOptions.path
const currentDirPath = `.${sep}`
let _path = serverOptions.path;
const currentDirPath = `.${sep}`;

if (!(isAbsolute(_path) || _path.startsWith(currentDirPath))) {
_path = currentDirPath + _path
_path = currentDirPath + _path;
}
_addURL("local", _path);
return urls;
Expand Down

0 comments on commit cbda020

Please sign in to comment.