Skip to content

Commit fcb8e87

Browse files
committed
fix linting error
1 parent e6dc8f6 commit fcb8e87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/refactors/convertArrowFunctionOrFunctionExpression.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ namespace ts.refactor.convertArrowFunctionOrFunctionExpression {
2525
readonly name: Identifier;
2626
}
2727

28-
function getAvailableActions(context: RefactorContext): ReadonlyArray<ApplicableRefactorInfo> {
28+
function getAvailableActions(context: RefactorContext): readonly ApplicableRefactorInfo[] {
2929
const { file, startPosition, program } = context;
3030
const info = getFunctionInfo(file, startPosition, program);
3131

@@ -200,7 +200,7 @@ namespace ts.refactor.convertArrowFunctionOrFunctionExpression {
200200
if (canBeConvertedToExpression(func.body, head)) {
201201
body = head.expression!;
202202
suppressLeadingAndTrailingTrivia(body);
203-
copyComments(head, body, file, SyntaxKind.MultiLineCommentTrivia, /* hasTrailingNewLine */ false);
203+
copyComments(head, body);
204204
}
205205
else {
206206
body = func.body;

0 commit comments

Comments
 (0)