Skip to content

Commit 4659cc2

Browse files
gabrielmcoelhomatsko
authored andcommitted
style: emove unreachable 'return null' statement (angular#33174)
There's another return statement before this one, therefore 'return null' will never be reached. PR Close angular#33174
1 parent 67c9148 commit 4659cc2

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

packages/compiler-cli/ngcc/src/migrations/undecorated_parent_migration.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ export class UndecoratedParentMigration implements Migration {
6868
return makeDiagnostic(
6969
ErrorCode.NGCC_MIGRATION_EXTERNAL_BASE_CLASS, baseClassExpr,
7070
`${clazz.name.text} class has a dynamic base class ${baseClassExpr.getText()}, so it is not possible to migrate.`);
71-
return null;
7271
}
7372

7473
const baseClazz = host.reflectionHost.getDeclarationOfIdentifier(baseClassExpr) !.node;

0 commit comments

Comments
 (0)