Skip to content

Commit 8a41cde

Browse files
committed
Fix linter errors
1 parent be6e43e commit 8a41cde

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/compiler/checker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8564,12 +8564,12 @@ namespace ts {
85648564
case SyntaxKind.SetAccessor:
85658565
// A method or accessor declaration decorator will have two or three arguments (see
85668566
// `PropertyDecorator` and `MethodDecorator` in core.d.ts)
8567-
8567+
85688568
// If we are emitting decorators for ES3, we will only pass two arguments.
85698569
if (languageVersion === ScriptTarget.ES3) {
85708570
return 2;
85718571
}
8572-
8572+
85738573
// If the method decorator signature only accepts a target and a key, we will only
85748574
// type check those arguments.
85758575
return signature.parameters.length >= 3 ? 3 : 2;

src/compiler/tsc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ namespace ts {
301301
sourceFile.fileWatcher.close();
302302
sourceFile.fileWatcher = undefined;
303303
if (removed) {
304-
var index = rootFileNames.indexOf(sourceFile.fileName);
304+
let index = rootFileNames.indexOf(sourceFile.fileName);
305305
if (index >= 0) {
306306
rootFileNames.splice(index, 1);
307307
}

0 commit comments

Comments
 (0)