From 05187b892b58a966be35273ec9a757a71bbd9ba8 Mon Sep 17 00:00:00 2001 From: zepumph Date: Thu, 19 Sep 2019 16:36:55 -0800 Subject: [PATCH] lint, https://github.com/phetsims/tasks/issues/1012 --- js/game/model/AreaBuilderChallengeFactory.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/game/model/AreaBuilderChallengeFactory.js b/js/game/model/AreaBuilderChallengeFactory.js index c46037b..3421c8b 100644 --- a/js/game/model/AreaBuilderChallengeFactory.js +++ b/js/game/model/AreaBuilderChallengeFactory.js @@ -534,7 +534,6 @@ define( require => { function generateBuildAreaChallenge() { // Create a unique challenge - let challenge; const width = random.nextIntBetween( 2, AreaBuilderGameModel.SHAPE_BOARD_UNIT_WIDTH - 2 ); let height = 0; while ( width * height < 8 || width * height > 36 ) { @@ -548,7 +547,7 @@ define( require => { height, color ); - challenge = AreaBuilderGameChallenge.createBuildAreaChallenge( width * height, createBasicRectanglesShapeKit( color ), exampleSolution ); + const challenge = AreaBuilderGameChallenge.createBuildAreaChallenge( width * height, createBasicRectanglesShapeKit( color ), exampleSolution ); return challenge; }