Skip to content

Commit eb8150c

Browse files
Use 'let' in the services layer.
1 parent 1430a0b commit eb8150c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/services/formatting/tokenRange.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ module ts.formatting {
2727

2828
constructor(from: SyntaxKind, to: SyntaxKind, except: SyntaxKind[]) {
2929
this.tokens = [];
30-
for (var token = from; token <= to; token++) {
30+
for (let token = from; token <= to; token++) {
3131
if (except.indexOf(token) < 0) {
3232
this.tokens.push(token);
3333
}
@@ -74,8 +74,8 @@ module ts.formatting {
7474

7575
export class TokenAllAccess implements ITokenAccess {
7676
public GetTokens(): SyntaxKind[] {
77-
var result: SyntaxKind[] = [];
78-
for (var token = SyntaxKind.FirstToken; token <= SyntaxKind.LastToken; token++) {
77+
let result: SyntaxKind[] = [];
78+
for (let token = SyntaxKind.FirstToken; token <= SyntaxKind.LastToken; token++) {
7979
result.push(token);
8080
}
8181
return result;

0 commit comments

Comments
 (0)