mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-27 07:14:36 +02:00
Add parentheses around multiple spread conditions
This commit is contained in:
@@ -160,7 +160,7 @@ class ScrollSpy {
|
||||
_getConfig(config) {
|
||||
config = {
|
||||
...Default,
|
||||
...typeof config === 'object' && config ? config : {}
|
||||
...(typeof config === 'object' && config ? config : {})
|
||||
}
|
||||
|
||||
if (typeof config.target !== 'string' && isElement(config.target)) {
|
||||
|
Reference in New Issue
Block a user