Skip to content

Commit c4597a1

Browse files
committed
chore: format with prettier
1 parent 505b621 commit c4597a1

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/_parser.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ function toVal(out, key, val, opts) {
2929
? ""
3030
: String(val)
3131
: typeof val === "boolean"
32-
? val
33-
: ~opts.boolean.indexOf(key)
34-
? val === "false"
35-
? false
36-
: val === "true" ||
37-
(out._.push(((x = +val), x * 0 === 0) ? x : val), !!val)
38-
: ((x = +val), x * 0 === 0)
39-
? x
40-
: val;
32+
? val
33+
: ~opts.boolean.indexOf(key)
34+
? val === "false"
35+
? false
36+
: val === "true" ||
37+
(out._.push(((x = +val), x * 0 === 0) ? x : val), !!val)
38+
: ((x = +val), x * 0 === 0)
39+
? x
40+
: val;
4141
out[key] =
4242
old == undefined ? nxt : Array.isArray(old) ? old.concat(nxt) : [old, nxt];
4343
}

0 commit comments

Comments
 (0)