lint
This commit is contained in:
parent
415f57e0ef
commit
9a10590414
|
@ -126,14 +126,14 @@ module MongoDBModule {
|
||||||
if (c === '"') {
|
if (c === '"') {
|
||||||
inQuotes = !inQuotes
|
inQuotes = !inQuotes
|
||||||
}
|
}
|
||||||
if (c === '{' && !inQuotes) {
|
if (c === "{" && !inQuotes) {
|
||||||
openCount++
|
openCount++
|
||||||
if (openCount === 1) {
|
if (openCount === 1) {
|
||||||
startIndex = i
|
startIndex = i
|
||||||
}
|
}
|
||||||
} else if (c === '}' && !inQuotes) {
|
} else if (c === "}" && !inQuotes) {
|
||||||
if (openCount === 1) {
|
if (openCount === 1) {
|
||||||
queryParams.push(JSON.parse(params.substring(startIndex, i+1)))
|
queryParams.push(JSON.parse(params.substring(startIndex, i + 1)))
|
||||||
}
|
}
|
||||||
openCount--
|
openCount--
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue