Commit c1ea41e2 authored by Mike Greiling's avatar Mike Greiling

use shorthand instead of length > 0 (http://airbnb.io/javascript/#comparison--shortcuts)

parent 6dd2a520
...@@ -141,7 +141,7 @@ ...@@ -141,7 +141,7 @@
$('.js-tabs-affix').outerHeight() $('.js-tabs-affix').outerHeight()
); );
const $el = $(`${container} ${location.hash}:not(.match)`); const $el = $(`${container} ${location.hash}:not(.match)`);
if ($el.length > 0) { if ($el.length) {
$.scrollTo($el[0], { offset }); $.scrollTo($el[0], { offset });
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment