Skip to content

Commit

Permalink
ESLint no-undefined rule
Browse files Browse the repository at this point in the history
  • Loading branch information
Procybit committed Jan 15, 2024
1 parent 416507c commit 99d60d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/engine/target.js
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,8 @@ class Target extends EventEmitter {
return null;
};

const allReferences = this.blocks.getAllVariableAndListReferences(undefined, true);
// Get all variables including broadcasts
const allReferences = this.blocks.getAllVariableAndListReferences(null, true);
const unreferencedLocalVarIds = [];
if (Object.keys(this.variables).length > 0) {
for (const localVarId in this.variables) {
Expand Down

0 comments on commit 99d60d3

Please sign in to comment.