Skip to content

Commit 1baea88

Browse files
committed
shorten function
1 parent 6f97021 commit 1baea88

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14911,11 +14911,7 @@ namespace ts {
1491114911
if (!moduleSymbol) {
1491214912
return undefined;
1491314913
}
14914-
const moduleDeclaration = getDeclarationOfKind(moduleSymbol, SyntaxKind.SourceFile) as SourceFile;
14915-
if (!moduleDeclaration) {
14916-
return undefined;
14917-
}
14918-
return moduleDeclaration;
14914+
return getDeclarationOfKind(moduleSymbol, SyntaxKind.SourceFile) as SourceFile;
1491914915
}
1492014916

1492114917
function initializeTypeChecker() {

0 commit comments

Comments
 (0)