fix(ToolbarToggler): remove Yoda condition
Is not very readable and is not used across the project
This commit is contained in:
parent
f7bfe8d8bf
commit
ecfc56461e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue