Skip to content

Commit

Permalink
lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
haneefdm committed Aug 29, 2023
1 parent 5f310bf commit 400e6d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/gdb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions src/live-watch-monitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 400e6d5

Please sign in to comment.