Skip to content

Commit 68ea063

Browse files
format
1 parent 7c21109 commit 68ea063

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

src/lib/run.js

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -335,25 +335,22 @@ async function run(
335335

336336
console.log(`Full PATH ${fullPath}`);
337337

338-
const urlFile = fsOperation(fullPath)
338+
const urlFile = fsOperation(fullPath);
339339

340-
const stats = await urlFile.stat()
340+
const stats = await urlFile.stat();
341341

342-
if(!stats.exists){
343-
error(reqId)
344-
return
342+
if (!stats.exists) {
343+
error(reqId);
344+
return;
345345
}
346346

347-
if(!stats.isFile){
347+
if (!stats.isFile) {
348348
if (fullPath.endsWith("/")) {
349349
fullPath += "index.html";
350-
}else{
351-
fullPath += "/index.html"
350+
} else {
351+
fullPath += "/index.html";
352352
}
353353
}
354-
355-
356-
357354

358355
// Add back the query if present
359356
url = query ? `${fullPath}?${query}` : fullPath;

0 commit comments

Comments
 (0)