Fix lint errors

This commit is contained in:
Florrie 2018-03-05 15:46:54 -04:00
parent defcc45419
commit 928df260ff

View file

@ -121,7 +121,8 @@ class Scratch3ControlBlocks {
// is being iterated does not change the mode.
if (typeof util.stackFrame.iterationMode === 'undefined') {
let value = args.VALUE, mode;
const value = args.VALUE;
let mode;
if (typeof value === 'string' && !isNaN(Number(value))) {
mode = 'number';
} else if (typeof value === 'number') {