mirror of
https://github.com/twbs/bootstrap.git
synced 2025-09-25 21:09:06 +02:00
Remove useless check for null object with spread operator
This commit is contained in:
@@ -341,7 +341,7 @@ class Dropdown {
|
||||
}
|
||||
|
||||
_getPopperConfig() {
|
||||
let popperConfig = {
|
||||
const popperConfig = {
|
||||
placement: this._getPlacement(),
|
||||
modifiers: {
|
||||
offset: this._getOffset(),
|
||||
@@ -361,14 +361,10 @@ class Dropdown {
|
||||
}
|
||||
}
|
||||
|
||||
if (this._config.popperConfig) {
|
||||
popperConfig = {
|
||||
...popperConfig,
|
||||
...this._config.popperConfig
|
||||
}
|
||||
return {
|
||||
...popperConfig,
|
||||
...this._config.popperConfig
|
||||
}
|
||||
|
||||
return popperConfig
|
||||
}
|
||||
|
||||
// Static
|
||||
|
Reference in New Issue
Block a user