From ecfc56461ed397206a9808e6d980b1e26e76fb44 Mon Sep 17 00:00:00 2001 From: paweldomas Date: Fri, 21 Oct 2016 09:20:17 -0500 Subject: [PATCH] fix(ToolbarToggler): remove Yoda condition Is not very readable and is not used across the project --- modules/UI/toolbars/ToolbarToggler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/UI/toolbars/ToolbarToggler.js b/modules/UI/toolbars/ToolbarToggler.js index f53e54b5c..a45d46fb5 100644 --- a/modules/UI/toolbars/ToolbarToggler.js +++ b/modules/UI/toolbars/ToolbarToggler.js @@ -34,7 +34,7 @@ function hideToolbar(force) { // eslint-disable-line no-unused-vars clearTimeout(toolbarTimeoutObject); toolbarTimeoutObject = null; - if (true !== force && + if (force !== true && (Toolbar.isHovered() || SideContainerToggler.isVisible())) { toolbarTimeoutObject = setTimeout(hideToolbar, toolbarTimeout);