mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-12 20:01:02 -05:00
shorten function
This commit is contained in:
@@ -14911,11 +14911,7 @@ namespace ts {
|
||||
if (!moduleSymbol) {
|
||||
return undefined;
|
||||
}
|
||||
const moduleDeclaration = getDeclarationOfKind(moduleSymbol, SyntaxKind.SourceFile) as SourceFile;
|
||||
if (!moduleDeclaration) {
|
||||
return undefined;
|
||||
}
|
||||
return moduleDeclaration;
|
||||
return getDeclarationOfKind(moduleSymbol, SyntaxKind.SourceFile) as SourceFile;
|
||||
}
|
||||
|
||||
function initializeTypeChecker() {
|
||||
|
||||
Reference in New Issue
Block a user