File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
packages/@ngtools/webpack/src Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -55,15 +55,13 @@ export class TypeScriptFileRefactor {
55
55
if ( ! this . _program ) {
56
56
return [ ] ;
57
57
}
58
- let diagnostics :ts . Diagnostic [ ] = this . _program . getSyntacticDiagnostics ( this . _sourceFile )
59
- . concat ( this . _program . getSemanticDiagnostics ( this . _sourceFile ) ) ;
58
+ let diagnostics : ts . Diagnostic [ ] = this . _program . getSyntacticDiagnostics ( this . _sourceFile )
59
+ . concat ( this . _program . getSemanticDiagnostics ( this . _sourceFile ) ) ;
60
60
// only concat the declaration diagnostics if the tsconfig config sets it to true.
61
- if ( this . _program . getCompilerOptions ( ) . declaration == true ) {
61
+ if ( this . _program . getCompilerOptions ( ) . declaration == true ) {
62
62
diagnostics = diagnostics . concat ( this . _program . getDeclarationDiagnostics ( this . _sourceFile ) ) ;
63
63
}
64
64
return diagnostics ;
65
-
66
-
67
65
}
68
66
69
67
/**
You can’t perform that action at this time.
0 commit comments