From 25fc1ef35e00ccf7fb54b188ab87c6ea4da72c3c Mon Sep 17 00:00:00 2001 From: Harley White Date: Thu, 21 Jan 2021 02:58:27 -0500 Subject: [PATCH] Simplified code in shouldNotify --- js/game.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/js/game.js b/js/game.js index ccd7f56..d60dc8b 100644 --- a/js/game.js +++ b/js/game.js @@ -101,11 +101,9 @@ function shouldNotify(layer){ return true } } - if (tmp[layer].shouldNotify){ - return tmp[layer].shouldNotify - } - else - return false + + return tmp[layer].shouldNotify + } function canReset(layer)