From 85d6f3a896aa22b8da965f1899632aa17b5752fb Mon Sep 17 00:00:00 2001 From: zepumph Date: Thu, 19 Sep 2019 16:36:57 -0800 Subject: [PATCH] lint, https://github.com/phetsims/tasks/issues/1012 --- js/common/model/LevelModel.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/js/common/model/LevelModel.js b/js/common/model/LevelModel.js index d542e0ae..0c300899 100644 --- a/js/common/model/LevelModel.js +++ b/js/common/model/LevelModel.js @@ -86,8 +86,6 @@ define( require => { selectUnusedMultiplierPair: function() { const availableMultiplicands = []; const availableMultipliers = []; - let multiplicand; - let multiplier; // find available multiplicand rows with at least one unused cell this.cellUsedStates.forEach( function( multipliers, index ) { @@ -102,7 +100,7 @@ define( require => { } // set multiplicand - multiplicand = phet.joist.random.shuffle( availableMultiplicands )[ 0 ]; + const multiplicand = phet.joist.random.shuffle( availableMultiplicands )[ 0 ]; // find available multipliers this.cellUsedStates[ multiplicand - 1 ].forEach( function( isProblemAnswered, index ) { @@ -112,7 +110,7 @@ define( require => { } ); // set multiplier - multiplier = phet.joist.random.sample( availableMultipliers ); + const multiplier = phet.joist.random.sample( availableMultipliers ); return { multiplicand: multiplicand,