File tree Expand file tree Collapse file tree 1 file changed +8
-11
lines changed
Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments