Skip to content

Commit c1b55a9

Browse files
author
Andy Hanson
committed
Fix linting
1 parent 5b075ff commit c1b55a9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/compiler/moduleNameResolver.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ namespace ts {
357357
* Then it computes the set of parent folders for 'directory' that should have the same module resolution result
358358
* and for every parent folder in set it adds entry: parent -> module resolution. .
359359
* Lets say we first directory name: /a/b/c/d/e and resolution result is: /a/b/bar.ts.
360-
* Set of parent folders that should have the same result will be:
360+
* Set of parent folders that should have the same result will be:
361361
* [
362362
* /a/b/c/d, /a/b/c, /a/b
363363
* ]
@@ -391,7 +391,7 @@ namespace ts {
391391
}
392392
}
393393
}
394-
394+
395395
function getCommonPrefix(directory: Path, resolution: string) {
396396
if (resolution === undefined) {
397397
return undefined;
@@ -421,7 +421,7 @@ namespace ts {
421421
trace(host, Diagnostics.Resolving_module_0_from_1, moduleName, containingFile);
422422
}
423423
const containingDirectory = getDirectoryPath(containingFile);
424-
let perFolderCache = cache && cache.getOrCreateCacheForDirectory(containingDirectory);
424+
const perFolderCache = cache && cache.getOrCreateCacheForDirectory(containingDirectory);
425425
let result = perFolderCache && perFolderCache[moduleName];
426426

427427
if (result) {
@@ -1022,15 +1022,15 @@ namespace ts {
10221022

10231023
/**
10241024
* Represents result of search. Normally when searching among several alternatives we treat value `undefined` as indicator
1025-
* that search fails and we should try another option.
1025+
* that search fails and we should try another option.
10261026
* However this does not allow us to represent final result that should be used instead of further searching (i.e. a final result that was found in cache).
10271027
* SearchResult is used to deal with this issue, its values represents following outcomes:
10281028
* - undefined - not found, continue searching
10291029
* - { value: undefined } - not found - stop searching
10301030
* - { value: <some-value> } - found - stop searching
10311031
*/
10321032
type SearchResult<T> = { value: T | undefined } | undefined;
1033-
1033+
10341034
/**
10351035
* Wraps value to SearchResult.
10361036
* @returns undefined if value is undefined or { value } otherwise

0 commit comments

Comments
 (0)