From 400e6d53248aab0dcce7ae5e40896b30316cc40b Mon Sep 17 00:00:00 2001 From: Haneef Mohammed Date: Tue, 29 Aug 2023 10:11:05 -0700 Subject: [PATCH] lint issues --- src/gdb.ts | 6 +++--- src/live-watch-monitor.ts | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gdb.ts b/src/gdb.ts index b28abed6..ee90e96b 100755 --- a/src/gdb.ts +++ b/src/gdb.ts @@ -2634,7 +2634,7 @@ export class GDBDebugSession extends LoggingDebugSession { let varObj: VariableObject; let varId = this.variableHandlesReverse[gdbVarName]; let createNewVar = varId === undefined; - let updateError = undefined; + let updateError; if (!createNewVar) { try { const changes = await this.miDebugger.varUpdate(gdbVarName, threadId, frameId); @@ -3190,7 +3190,7 @@ export class GDBDebugSession extends LoggingDebugSession { let varObj: VariableObject; let varId = this.variableHandlesReverse[varObjName]; let createNewVar = varId === undefined; - let updateError = undefined; + let updateError; if (!createNewVar) { try { const changes = await this.miDebugger.varUpdate(varObjName, threadId, frameId); @@ -3228,7 +3228,7 @@ export class GDBDebugSession extends LoggingDebugSession { varObj = await this.miDebugger.varCreate(0, exp, varObjName, '@', threadId, frameId); } - const varId = findOrCreateVariable(varObj); + varId = findOrCreateVariable(varObj); varObj.exp = exp; varObj.id = varId; } else if (!varObj) { diff --git a/src/live-watch-monitor.ts b/src/live-watch-monitor.ts index 63c92e5b..1fa02e38 100644 --- a/src/live-watch-monitor.ts +++ b/src/live-watch-monitor.ts @@ -126,7 +126,7 @@ export class VariablesHandler { let varObj: VariableObject; let varId = this.variableHandlesReverse[varObjName]; let forceCreate = varId === undefined; - let updateError = undefined; + let updateError; if (!forceCreate) { try { const cachedChange = this.cachedChangeList && this.cachedChangeList[varObjName]; @@ -174,7 +174,7 @@ export class VariablesHandler { } else { varObj = await miDebugger.varCreate(0, exp, varObjName, '@', threadId, frameId); } - const varId = this.findOrCreateVariable(varObj); + varId = this.findOrCreateVariable(varObj); varObj.exp = exp; varObj.id = varId; } else if (!varObj) {