Skip to content

Commit

Permalink
Remove temporary variable within switch as it's scope is unclear
Browse files Browse the repository at this point in the history
  • Loading branch information
confused-Techie committed Feb 20, 2024
1 parent 19415e3 commit e3c7933
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/models/callStack.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,10 @@ module.exports = class CallStack {
}
break;
case "array":
let tmpArr = [];
outContent = [];
for (let i = 0; i < content.length; i++) {
tmpArr.push(this.sanitize(content[i]));
outContent.push(this.sanitize(content[i]));
}
outContent = tmpArr;
break;
default:
outContent = content;
Expand Down

0 comments on commit e3c7933

Please sign in to comment.