diff options
Diffstat (limited to '')
-rw-r--r-- | web_src/js/features/repo-settings.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web_src/js/features/repo-settings.js b/web_src/js/features/repo-settings.js index dc1db8ab29..0ea44130d0 100644 --- a/web_src/js/features/repo-settings.js +++ b/web_src/js/features/repo-settings.js @@ -71,7 +71,7 @@ export function initRepoSettingSearchTeamBox() { } export function initRepoSettingGitHook() { - if ($('.edit.githook').length === 0) return; + if (!$('.edit.githook').length) return; const filename = document.querySelector('.hook-filename').textContent; const _promise = createMonaco($('#content')[0], filename, {language: 'shell'}); } |