Skip to content

Commit 58e0469

Browse files
committed
fix typo
1 parent 909bc61 commit 58e0469

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/codefixes/convertConstToLet.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ namespace ts.codefix {
77
errorCodes,
88
getCodeActions: context => {
99
const { sourceFile, span, program } = context;
10-
const variableStatement = getVaribleStatement(sourceFile, span.start, program);
10+
const variableStatement = getVariableStatement(sourceFile, span.start, program);
1111
const changes = textChanges.ChangeTracker.with(context, t => doChange(t, sourceFile, variableStatement));
1212
return [createCodeFixAction(fixId, changes, Diagnostics.Convert_const_to_let, fixId, Diagnostics.Convert_const_to_let)];
1313
},
1414
fixIds: [fixId]
1515
});
1616

17-
function getVaribleStatement(sourceFile: SourceFile, pos: number, program: Program) {
17+
function getVariableStatement(sourceFile: SourceFile, pos: number, program: Program) {
1818
const token = getTokenAtPosition(sourceFile, pos);
1919
const checker = program.getTypeChecker();
2020
const symbol = checker.getSymbolAtLocation(token);

0 commit comments

Comments
 (0)