diff options
| author | Johann-S <[email protected]> | 2019-08-14 18:02:41 +0200 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2019-08-18 17:19:36 +0300 |
| commit | a9c35b3ca8492b38a7876eaee033398d35d9dabf (patch) | |
| tree | 0bf9f79aa253ecb9d843f2b17ab181f61b6bf9d0 /js/src/tooltip | |
| parent | 9cee3c280803471dbd240e755279fe1e2c04ac9e (diff) | |
| download | bootstrap-a9c35b3ca8492b38a7876eaee033398d35d9dabf.tar.xz bootstrap-a9c35b3ca8492b38a7876eaee033398d35d9dabf.zip | |
Remove useless check for null object with spread operator
Diffstat (limited to 'js/src/tooltip')
| -rw-r--r-- | js/src/tooltip/tooltip.js | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/js/src/tooltip/tooltip.js b/js/src/tooltip/tooltip.js index 8bf998468..99ac29af6 100644 --- a/js/src/tooltip/tooltip.js +++ b/js/src/tooltip/tooltip.js @@ -483,15 +483,10 @@ class Tooltip { onUpdate: data => this._handlePopperPlacementChange(data) } - let resultConfig = defaultBsConfig - if (this.config.popperConfig) { - resultConfig = { - ...defaultBsConfig, - ...this.config.popperConfig - } + return { + ...defaultBsConfig, + ...this.config.popperConfig } - - return resultConfig } _addAttachmentClass(attachment) { |
