]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Comply with consistent-return ESLint rule
authorChris Rebert <code@chrisrebert.com>
Tue, 31 May 2016 07:45:32 +0000 (00:45 -0700)
committerChris Rebert <code@chrisrebert.com>
Tue, 31 May 2016 07:45:32 +0000 (00:45 -0700)
js/src/scrollspy.js
js/src/util.js

index b9186db00d90721b5326f1bb58c772979de103d3..001f7f56c4fa32826ceff37e4a0e8a72d523cfef 100644 (file)
@@ -140,6 +140,7 @@ const ScrollSpy = (($) => {
               targetSelector
             ]
           }
+          return null
         })
         .filter((item)  => item)
         .sort((a, b)    => a[0] - b[0])
index 070c5ea757b51152b83f9aeb1d684591213bdfad..b779c448f4969b344d69af3de1246b5aa25f70b4 100644 (file)
@@ -42,6 +42,7 @@ const Util = (($) => {
         if ($(event.target).is(this)) {
           return event.handleObj.handler.apply(this, arguments)
         }
+        return undefined
       }
     }
   }