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:
parent
67c914819a
commit
4659cc26ea
@ -68,7 +68,6 @@ export class UndecoratedParentMigration implements Migration {
|
|||||||
return makeDiagnostic(
|
return makeDiagnostic(
|
||||||
ErrorCode.NGCC_MIGRATION_EXTERNAL_BASE_CLASS, baseClassExpr,
|
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.`);
|
`${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;
|
const baseClazz = host.reflectionHost.getDeclarationOfIdentifier(baseClassExpr) !.node;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user