Skip to content

Commit 28e68a6

Browse files
author
Benjamin Lichtman
committed
Fix spelling of convertible
1 parent 2dd6e20 commit 28e68a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/services/suggestionDiagnostics.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,14 @@ namespace ts {
117117
}
118118

119119
function addConvertToAsyncFunctionDiagnostics(node: FunctionLikeDeclaration, checker: TypeChecker, diags: Push<DiagnosticWithLocation>): void {
120-
if (!visitedNestedConvertibleFunctions.has(getKeyFromNode(node)) && isConvertableFunction(node, checker)) {
120+
if (!visitedNestedConvertibleFunctions.has(getKeyFromNode(node)) && isConvertibleFunction(node, checker)) {
121121
diags.push(createDiagnosticForNode(
122122
!node.name && isVariableDeclaration(node.parent) && isIdentifier(node.parent.name) ? node.parent.name : node,
123123
Diagnostics.This_may_be_converted_to_an_async_function));
124124
}
125125
}
126126

127-
function isConvertableFunction(node: FunctionLikeDeclaration, checker: TypeChecker) {
127+
function isConvertibleFunction(node: FunctionLikeDeclaration, checker: TypeChecker) {
128128
return !isAsyncFunction(node) &&
129129
node.body &&
130130
isBlock(node.body) &&
@@ -179,7 +179,7 @@ namespace ts {
179179
case SyntaxKind.FunctionDeclaration:
180180
case SyntaxKind.FunctionExpression:
181181
case SyntaxKind.ArrowFunction:
182-
if (isConvertableFunction(arg as FunctionLikeDeclaration, checker)) {
182+
if (isConvertibleFunction(arg as FunctionLikeDeclaration, checker)) {
183183
visitedNestedConvertibleFunctions.set(getKeyFromNode(arg as FunctionLikeDeclaration), true);
184184
}
185185
/* falls through */

0 commit comments

Comments
 (0)