Merge pull request #27500 from Loghorn/patch-1

Small refactoring of getTransformationBody
This commit is contained in:
Ryan Cavanaugh 2018-10-02 08:48:19 -07:00 committed by GitHub
commit 0d92bd5bec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -410,7 +410,7 @@ namespace ts.codefix {
break;
}
const synthCall = createCall(getSynthesizedDeepClone(func as Identifier), /*typeArguments*/ undefined, argName ? [argName.identifier] : emptyArray);
const synthCall = createCall(getSynthesizedDeepClone(func as Identifier), /*typeArguments*/ undefined, [argName.identifier]);
if (shouldReturn) {
return [createReturn(synthCall)];
}