mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-08-12 22:42:03 -04:00
Fixing linting errors
This commit is contained in:
parent
70959cc7f5
commit
b18938963f
2 changed files with 4 additions and 4 deletions
src/engine
|
@ -87,7 +87,7 @@ class Target extends EventEmitter {
|
|||
const variable = this.lookupVariableById(id);
|
||||
if (variable) return variable;
|
||||
// No variable with this name exists - create it locally.
|
||||
const newVariable = new Variable(id, name, "", false);
|
||||
const newVariable = new Variable(id, name, '', false);
|
||||
this.variables[id] = newVariable;
|
||||
return newVariable;
|
||||
}
|
||||
|
@ -124,7 +124,7 @@ class Target extends EventEmitter {
|
|||
const list = this.lookupVariableById(id);
|
||||
if (list) return list;
|
||||
// No variable with this name exists - create it locally.
|
||||
const newList = new Variable(id, name, "list", false);
|
||||
const newList = new Variable(id, name, 'list', false);
|
||||
this.variables[id] = newList;
|
||||
return newList;
|
||||
}
|
||||
|
|
|
@ -19,10 +19,10 @@ class Variable {
|
|||
this.type = type;
|
||||
this.isCloud = isCloud;
|
||||
switch (this.type) {
|
||||
case "":
|
||||
case '':
|
||||
this.value = 0;
|
||||
break;
|
||||
case "list":
|
||||
case 'list':
|
||||
this.value = [];
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue