mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-09 07:06:36 +02:00
Comply with consistent-return ESLint rule
This commit is contained in:
@@ -140,6 +140,7 @@ const ScrollSpy = (($) => {
|
|||||||
targetSelector
|
targetSelector
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
return null
|
||||||
})
|
})
|
||||||
.filter((item) => item)
|
.filter((item) => item)
|
||||||
.sort((a, b) => a[0] - b[0])
|
.sort((a, b) => a[0] - b[0])
|
||||||
|
@@ -42,6 +42,7 @@ const Util = (($) => {
|
|||||||
if ($(event.target).is(this)) {
|
if ($(event.target).is(this)) {
|
||||||
return event.handleObj.handler.apply(this, arguments)
|
return event.handleObj.handler.apply(this, arguments)
|
||||||
}
|
}
|
||||||
|
return undefined
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user