From aff7dc88f748393f8498bcb797ca6639280bbb99 Mon Sep 17 00:00:00 2001 From: adroitwhiz Date: Sat, 16 May 2020 03:42:06 -0400 Subject: [PATCH] Remove redundant `if (selectionRect)` --- src/helper/selection-tools/selection-box-tool.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/helper/selection-tools/selection-box-tool.js b/src/helper/selection-tools/selection-box-tool.js index 07d7d470..00361df0 100644 --- a/src/helper/selection-tools/selection-box-tool.js +++ b/src/helper/selection-tools/selection-box-tool.js @@ -74,8 +74,7 @@ class SelectionBoxTool { context.clearRect(rect.x, rect.y, rect.width, rect.height); this.setSelectedItems(); } - } - if (this.selectionRect) { + // Remove dotted rectangle this.selectionRect.remove(); this.selectionRect = null;