Skip to content

Commit c7929d3

Browse files
committed
Make lint happy
1 parent 6df6a52 commit c7929d3

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/compiler/enums.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@ const InputType = {
9090
/** Any array. */
9191
ARRAY: 0x4000,
9292

93-
/** Any value type (a type a scratch variable can hold). Equal to NUMBER_OR_NAN | STRING | BOOLEAN | OBJECT | ARRAY */
93+
/**
94+
* Any value type (a type a scratch variable can hold).
95+
* Equal to NUMBER_OR_NAN | STRING | BOOLEAN | OBJECT | ARRAY
96+
*/
9497
ANY: 0x7FFF,
9598

9699
/** An array of values in the form [R, G, B] */

src/compiler/irgen.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,8 @@ class ScriptTreeGenerator {
153153
if (typeof constant === 'object') {
154154
if (Array.isArray(constant)) {
155155
return new IntermediateInput(InputOpcode.CONSTANT, InputType.ARRAY, {value: constant});
156-
} else {
157-
return new IntermediateInput(InputOpcode.CONSTANT, InputType.OBJECT, {value: constant});
158156
}
157+
return new IntermediateInput(InputOpcode.CONSTANT, InputType.OBJECT, {value: constant});
159158
}
160159

161160
constant += '';

0 commit comments

Comments
 (0)