Skip to content

Commit baa228b

Browse files
author
Andy
authored
Merge pull request microsoft#12415 from Microsoft/fix_lint
Fix lint errors
2 parents 110c3ac + 7c1f33f commit baa228b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/services/codefixes/importFixes.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ namespace ts.codefix {
5252
// than another existing one. For example, you may have new imports from "./foo/bar"
5353
// and "bar", when the new one is "bar/bar2" and the current one is "./foo/bar". The new
5454
// one and the current one are not comparable (one relative path and one absolute path),
55-
// but the new one is worse than the other one, so should not add to the list.
55+
// but the new one is worse than the other one, so should not add to the list.
5656
updatedNewImports.push(existingAction);
5757
break;
5858
case ModuleSpecifierComparison.Worse:
@@ -145,7 +145,7 @@ namespace ts.codefix {
145145
if (localSymbol && localSymbol.name === name && checkSymbolHasMeaning(localSymbol, currentTokenMeaning)) {
146146
// check if this symbol is already used
147147
const symbolId = getUniqueSymbolId(localSymbol);
148-
symbolIdActionMap.addActions(symbolId, getCodeActionForImport(moduleSymbol, /*isDefaultExport*/ true));
148+
symbolIdActionMap.addActions(symbolId, getCodeActionForImport(moduleSymbol, /*isDefault*/ true));
149149
}
150150
}
151151

@@ -483,7 +483,7 @@ namespace ts.codefix {
483483
const normalizedTypeRoots = map(typeRoots, typeRoot => toPath(typeRoot, /*basePath*/ undefined, getCanonicalFileName));
484484
for (const typeRoot of normalizedTypeRoots) {
485485
if (startsWith(moduleFileName, typeRoot)) {
486-
let relativeFileName = moduleFileName.substring(typeRoot.length + 1);
486+
const relativeFileName = moduleFileName.substring(typeRoot.length + 1);
487487
return removeExtensionAndIndexPostFix(relativeFileName);
488488
}
489489
}

0 commit comments

Comments
 (0)