Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2016-12-01 21:19:22 +0300
committerMike Greiling <mike@pixelcog.com>2016-12-03 02:38:58 +0300
commitc1ea41e2f564f3113b3dfcd2e654531d6b475a7f (patch)
tree6282e7e9704ab712628ac94d22a8536c8c7c6e16 /app
parent6dd2a5204e9c17410c627737c7fed14642ed4e76 (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.es62
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 });
}
}