1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-25 21:09:06 +02:00

Add parentheses around multiple spread conditions

This commit is contained in:
XhmikosR
2020-06-26 18:50:04 +03:00
parent a67231ae1c
commit 6d86b140f9
6 changed files with 7 additions and 7 deletions

View File

@@ -170,7 +170,7 @@ class Toast {
config = {
...Default,
...Manipulator.getDataAttributes(this._element),
...typeof config === 'object' && config ? config : {}
...(typeof config === 'object' && config ? config : {})
}
typeCheckConfig(NAME, config, this.constructor.DefaultType)