lint
This commit is contained in:
parent
09a3052aa2
commit
051779b013
|
@ -124,10 +124,10 @@ module MongoDBModule {
|
||||||
const closeCount = queryParams[i].match(/}/g)?.length ?? 0
|
const closeCount = queryParams[i].match(/}/g)?.length ?? 0
|
||||||
if ((openCount + closeCount) % 2 !== 0) {
|
if ((openCount + closeCount) % 2 !== 0) {
|
||||||
if (openCount > closeCount) {
|
if (openCount > closeCount) {
|
||||||
queryParams[i] += `, ${queryParams[i+1]}`
|
queryParams[i] += `, ${queryParams[i + 1]}`
|
||||||
queryParams.splice(i+1, 1)
|
queryParams.splice(i + 1, 1)
|
||||||
} else {
|
} else {
|
||||||
queryParams[i-1] += `, ${queryParams[i]}`
|
queryParams[i - 1] += `, ${queryParams[i]}`
|
||||||
queryParams.splice(i, 1)
|
queryParams.splice(i, 1)
|
||||||
i--
|
i--
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue