File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -1311,7 +1311,6 @@ namespace ts {
1311
1311
for ( let i = 0 ; i < moduleNames . length ; i ++ ) {
1312
1312
const resolution = resolutions [ i ] ;
1313
1313
setResolvedModule ( file , moduleNames [ i ] , resolution ) ;
1314
- const resolvedPath = resolution ? toPath ( resolution . resolvedFileName , currentDirectory , getCanonicalFileName ) : undefined ;
1315
1314
1316
1315
// add file to program only if:
1317
1316
// - resolution was successful
@@ -1333,7 +1332,7 @@ namespace ts {
1333
1332
}
1334
1333
else if ( shouldAddFile ) {
1335
1334
findSourceFile ( resolution . resolvedFileName ,
1336
- resolvedPath ,
1335
+ toPath ( resolution . resolvedFileName , currentDirectory , getCanonicalFileName ) ,
1337
1336
/*isDefaultLib*/ false , /*isReference*/ false ,
1338
1337
file ,
1339
1338
skipTrivia ( file . text , file . imports [ i ] . pos ) ,
You can’t perform that action at this time.
0 commit comments