Skip to content

Commit 081c692

Browse files
committed
replacing let with const
1 parent 27f72eb commit 081c692

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/jsDoc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,9 @@ namespace ts.JsDoc {
166166
const lineStart = sourceFile.getLineStarts()[posLineAndChar.line];
167167

168168
const indentationStr = sourceFile.text.substr(lineStart, posLineAndChar.character);
169+
const isJavaScriptFile = hasJavaScriptFileExtension(sourceFile.fileName); // JSX or JS file
169170

170171
let docParams = "";
171-
let isJavaScriptFile = hasJavaScriptFileExtension(sourceFile.fileName); // JSX or JS file
172172
for (let i = 0, numParams = parameters.length; i < numParams; i++) {
173173
const currentName = parameters[i].name;
174174
const paramName = currentName.kind === SyntaxKind.Identifier ?

0 commit comments

Comments
 (0)