From c4597a164422615c1ad67b693ed26bae82098a54 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Mon, 20 Nov 2023 16:31:27 +0100 Subject: [PATCH] chore: format with prettier --- src/_parser.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/_parser.ts b/src/_parser.ts index 2a53a0f..bd2f6e6 100644 --- a/src/_parser.ts +++ b/src/_parser.ts @@ -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]; }