Skip to content

Commit 91adbd2

Browse files
committed
Remove redundant code from getResolvedSignatureWorker
1 parent 1c9ce4f commit 91adbd2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1839,10 +1839,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
18391839
function getResolvedSignatureWorker(nodeIn: CallLikeExpression, candidatesOutArray: Signature[] | undefined, argumentCount: number | undefined, checkMode: CheckMode, editingArgument?: Node): Signature | undefined {
18401840
const node = getParseTreeNode(nodeIn, isCallLikeExpression);
18411841
apparentArgumentCount = argumentCount;
1842-
const res =
1843-
!node ? undefined :
1844-
editingArgument ? runWithInferenceBlockedFromSourceNode(editingArgument, () => getResolvedSignature(node, candidatesOutArray, checkMode)) :
1845-
getResolvedSignature(node, candidatesOutArray, checkMode);
1842+
const res = node && runWithInferenceBlockedFromSourceNode(editingArgument, () => getResolvedSignature(node, candidatesOutArray, checkMode));
18461843
apparentArgumentCount = undefined;
18471844
return res;
18481845
}

0 commit comments

Comments
 (0)