mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
fix linting error
This commit is contained in:
1 parent
e6dc8f6c69
commit
fcb8e87e69
1 file changed
+2
-2
@@ -25,7 +25,7 @@ namespace ts.refactor.convertArrowFunctionOrFunctionExpression {
|
||||
readonly name: Identifier;
|
||||
}
|
||||
|
||||
function getAvailableActions(context: RefactorContext): ReadonlyArray<ApplicableRefactorInfo> {
|
||||
function getAvailableActions(context: RefactorContext): readonly ApplicableRefactorInfo[] {
|
||||
const { file, startPosition, program } = context;
|
||||
const info = getFunctionInfo(file, startPosition, program);
|
||||
|
||||
@@ -200,7 +200,7 @@ namespace ts.refactor.convertArrowFunctionOrFunctionExpression {
|
||||
if (canBeConvertedToExpression(func.body, head)) {
|
||||
body = head.expression!;
|
||||
suppressLeadingAndTrailingTrivia(body);
|
||||
copyComments(head, body, file, SyntaxKind.MultiLineCommentTrivia, /* hasTrailingNewLine */ false);
|
||||
copyComments(head, body);
|
||||
}
|
||||
else {
|
||||
body = func.body;
|
||||
|
||||
Reference in new issue
Block a user