Skip to content

Commit

Permalink
fix: warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
uctakeoff committed Jan 8, 2022
1 parent 627554d commit cfc9dc8
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 38 deletions.
68 changes: 34 additions & 34 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@
"glob": "^7.1.6",
"mocha": "^8.4.0",
"tslint": "^6.1.2",
"typescript": "^4.1.3",
"typescript": "^4.5.4",
"vscode-test": "^1.5.0"
},
"dependencies": {
Expand Down
6 changes: 3 additions & 3 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ class CodeCounterController {
this.countLinesInDirectory_(vscode.Uri.parse(uri), folder.uri);
}
}
} catch (e) {
} catch (e: any) {
showError(`countLinesInDirectory() failed.`, e.message);
}
}
Expand All @@ -182,7 +182,7 @@ class CodeCounterController {
} else {
showError(`No folder are open.`);
}
} catch (e) {
} catch (e: any) {
showError(`countLinesInWorkSpace() failed.`, e.message);
}
}
Expand Down Expand Up @@ -424,7 +424,7 @@ function countLines(lineCounterTable: LineCounterTable, fileUris: vscode.Uri[],
vscode.workspace.fs.readFile(fileUri).then(data => {
try {
results.push(new Result(fileUri, lineCounter.name, lineCounter.count(decoder.decode(data))));
} catch (e) {
} catch (e: any) {
log(`"${fileUri}" Read Error : ${e.message}.`);
results.push(new Result(fileUri, '(Read Error)'));
}
Expand Down

0 comments on commit cfc9dc8

Please sign in to comment.