From 4659cc26eab261a43a34dd4964ba44114225d297 Mon Sep 17 00:00:00 2001 From: Gabriel Medeiros Coelho Date: Tue, 15 Oct 2019 11:07:10 -0300 Subject: [PATCH] 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 --- .../ngcc/src/migrations/undecorated_parent_migration.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/compiler-cli/ngcc/src/migrations/undecorated_parent_migration.ts b/packages/compiler-cli/ngcc/src/migrations/undecorated_parent_migration.ts index 3fec8e1714..921242983f 100644 --- a/packages/compiler-cli/ngcc/src/migrations/undecorated_parent_migration.ts +++ b/packages/compiler-cli/ngcc/src/migrations/undecorated_parent_migration.ts @@ -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;