Skip to content

Commit

Permalink
chore: format with prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Nov 20, 2023
1 parent 505b621 commit c4597a1
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/_parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ function toVal(out, key, val, opts) {
? ""
: String(val)
: typeof val === "boolean"
? val
: ~opts.boolean.indexOf(key)
? val === "false"
? false
: val === "true" ||
(out._.push(((x = +val), x * 0 === 0) ? x : val), !!val)
: ((x = +val), x * 0 === 0)
? x
: val;
? val
: ~opts.boolean.indexOf(key)
? val === "false"
? false
: val === "true" ||
(out._.push(((x = +val), x * 0 === 0) ? x : val), !!val)
: ((x = +val), x * 0 === 0)
? x
: val;
out[key] =
old == undefined ? nxt : Array.isArray(old) ? old.concat(nxt) : [old, nxt];
}
Expand Down

0 comments on commit c4597a1

Please sign in to comment.