Skip to content

Commit 67c1ff5

Browse files
committed
change let to const
1 parent 0adf20d commit 67c1ff5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

extension/src/goDebugCommands.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class VariableContentProvider implements vscode.TextDocumentContentProvider {
7171

7272
const chunk = 1 << 14;
7373
let offset = 0;
74-
let full: Uint8Array[] = [];
74+
const full: Uint8Array[] = [];
7575

7676
while (true) {
7777
const resp = await session.customRequest('readMemory', {
@@ -120,8 +120,6 @@ interface Variable {
120120
memoryReference?: string;
121121
}
122122

123-
124-
125123
const escapeCodes: Record<string, string> = {
126124
r: '\r',
127125
n: '\n',
@@ -132,7 +130,8 @@ const escapeCodes: Record<string, string> = {
132130
* Parses a variable value, unescaping special characters.
133131
*/
134132
function parseVariable(variable: Variable) {
135-
let raw = variable.value.trim();
133+
const raw = variable.value.trim();
134+
136135
try {
137136
return JSON.parse(raw);
138137
} catch (_) {

0 commit comments

Comments
 (0)