diff options
author | Mike Greiling <mike@pixelcog.com> | 2016-12-01 21:19:22 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2016-12-03 02:38:58 +0300 |
commit | c1ea41e2f564f3113b3dfcd2e654531d6b475a7f (patch) | |
tree | 6282e7e9704ab712628ac94d22a8536c8c7c6e16 /app | |
parent | 6dd2a5204e9c17410c627737c7fed14642ed4e76 (diff) |
use shorthand instead of length > 0 (http://airbnb.io/javascript/#comparison--shortcuts)
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/merge_request_tabs.js.es6 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/merge_request_tabs.js.es6 b/app/assets/javascripts/merge_request_tabs.js.es6 index 0e69785a3d9..73828c8ab0e 100644 --- a/app/assets/javascripts/merge_request_tabs.js.es6 +++ b/app/assets/javascripts/merge_request_tabs.js.es6 @@ -141,7 +141,7 @@ $('.js-tabs-affix').outerHeight() ); const $el = $(`${container} ${location.hash}:not(.match)`); - if ($el.length > 0) { + if ($el.length) { $.scrollTo($el[0], { offset }); } } |