Skip to content

Commit f310310

Browse files
author
Paul van Brenk
committed
Deal with buildbreak
1 parent a88ceb5 commit f310310

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/services/codefixes/superFixes.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ namespace ts.codefix {
3434
}
3535

3636
const constructor = getContainingFunction(token);
37-
const superCall = <ExpressionStatement>findSuperCall((<ConstructorDeclaration>constructor).body);
37+
const superCall = findSuperCall((<ConstructorDeclaration>constructor).body);
3838
if (!superCall) {
3939
return undefined;
4040
}
@@ -67,9 +67,9 @@ namespace ts.codefix {
6767
changes
6868
}];
6969

70-
function findSuperCall(n: Node): Node {
71-
if (n.kind === SyntaxKind.ExpressionStatement && isSuperCallExpression((<ExpressionStatement>n).expression)) {
72-
return n;
70+
function findSuperCall(n: Node): ExpressionStatement {
71+
if (n.kind === SyntaxKind.ExpressionStatement && isSuperCall((<ExpressionStatement>n).expression)) {
72+
return <ExpressionStatement>n;
7373
}
7474
if (isFunctionLike(n)) {
7575
return undefined;

0 commit comments

Comments
 (0)