Skip to content

Commit 0d92bd5

Browse files
Merge pull request microsoft#27500 from Loghorn/patch-1
Small refactoring of getTransformationBody
2 parents 76ab912 + bbf7753 commit 0d92bd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/codefixes/convertToAsyncFunction.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ namespace ts.codefix {
410410
break;
411411
}
412412

413-
const synthCall = createCall(getSynthesizedDeepClone(func as Identifier), /*typeArguments*/ undefined, argName ? [argName.identifier] : emptyArray);
413+
const synthCall = createCall(getSynthesizedDeepClone(func as Identifier), /*typeArguments*/ undefined, [argName.identifier]);
414414
if (shouldReturn) {
415415
return [createReturn(synthCall)];
416416
}

0 commit comments

Comments
 (0)