From c4add0c2f30b8404bd1d227b16d7668a236c1d63 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Tue, 31 May 2016 00:45:32 -0700 Subject: [PATCH] Comply with consistent-return ESLint rule --- js/src/scrollspy.js | 1 + js/src/util.js | 1 + 2 files changed, 2 insertions(+) diff --git a/js/src/scrollspy.js b/js/src/scrollspy.js index b9186db00d..001f7f56c4 100644 --- a/js/src/scrollspy.js +++ b/js/src/scrollspy.js @@ -140,6 +140,7 @@ const ScrollSpy = (($) => { targetSelector ] } + return null }) .filter((item) => item) .sort((a, b) => a[0] - b[0]) diff --git a/js/src/util.js b/js/src/util.js index 070c5ea757..b779c448f4 100644 --- a/js/src/util.js +++ b/js/src/util.js @@ -42,6 +42,7 @@ const Util = (($) => { if ($(event.target).is(this)) { return event.handleObj.handler.apply(this, arguments) } + return undefined } } }