Skip to content

Commit fa384d9

Browse files
committed
Modify comments
1 parent 3334bb0 commit fa384d9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/lib/utils.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,12 +158,11 @@ export function jsonToQueryParams(json: string | any, ignoreInvalid = true) {
158158
};
159159

160160
const parser = (jsonObj: object, key="") => {
161-
// if object with keys, recurse through key/values
162161
let queryValue = "";
163162

163+
// if object, attempt to recurse through key/value pairs
164164
if (typeof(jsonObj) === "object" && !(jsonObj instanceof Array)) {
165165
try {
166-
// recurse through key/value pairs
167166
const keys = Object.keys(jsonObj);
168167
for (let i=0; i < keys.length; i++) {
169168
// @ts-ignore

0 commit comments

Comments
 (0)