Skip to content

Commit 432e486

Browse files
committed
Use "const" instead of "let" in uint
1 parent b60faaa commit 432e486

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/vs/editor/common/core/uint.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export class Uint8Matrix {
1010
public readonly cols: number;
1111

1212
constructor(rows: number, cols: number, defaultValue: number) {
13-
let data = new Uint8Array(rows * cols);
13+
const data = new Uint8Array(rows * cols);
1414
for (let i = 0, len = rows * cols; i < len; i++) {
1515
data[i] = defaultValue;
1616
}
@@ -85,8 +85,8 @@ export function toUint32(v: number): number {
8585
}
8686

8787
export function toUint32Array(arr: number[]): Uint32Array {
88-
let len = arr.length;
89-
let r = new Uint32Array(len);
88+
const len = arr.length;
89+
const r = new Uint32Array(len);
9090
for (let i = 0; i < len; i++) {
9191
r[i] = toUint32(arr[i]);
9292
}

0 commit comments

Comments
 (0)