소스 검색

fix(ToolbarToggler): remove Yoda condition

Is not very readable and is not used across the project
master
paweldomas 8 년 전
부모
커밋
ecfc56461e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      modules/UI/toolbars/ToolbarToggler.js

+ 1
- 1
modules/UI/toolbars/ToolbarToggler.js 파일 보기

@@ -34,7 +34,7 @@ function hideToolbar(force) { // eslint-disable-line no-unused-vars
34 34
     clearTimeout(toolbarTimeoutObject);
35 35
     toolbarTimeoutObject = null;
36 36
 
37
-    if (true !== force &&
37
+    if (force !== true &&
38 38
             (Toolbar.isHovered()
39 39
                 || SideContainerToggler.isVisible())) {
40 40
         toolbarTimeoutObject = setTimeout(hideToolbar, toolbarTimeout);

Loading…
취소
저장