style: emove unreachable 'return null' statement (#33174)

There's another return statement before this one, therefore 'return null' will never be reached.

PR Close #33174
This commit is contained in:
Gabriel Medeiros Coelho 2019-10-15 11:07:10 -03:00 committed by Matias Niemelä
parent 67c914819a
commit 4659cc26ea
1 changed files with 0 additions and 1 deletions

View File

@ -68,7 +68,6 @@ export class UndecoratedParentMigration implements Migration {
return makeDiagnostic(
ErrorCode.NGCC_MIGRATION_EXTERNAL_BASE_CLASS, baseClassExpr,
`${clazz.name.text} class has a dynamic base class ${baseClassExpr.getText()}, so it is not possible to migrate.`);
return null;
}
const baseClazz = host.reflectionHost.getDeclarationOfIdentifier(baseClassExpr) !.node;