From 08a5aba067ab393b9f2cb01e4902fcd34cf7e3b7 Mon Sep 17 00:00:00 2001 From: Joseph Garrone Date: Thu, 25 Apr 2024 12:49:03 +0200 Subject: [PATCH] fmt --- src/tss.ts | 36 ++++++++++-------------------------- 1 file changed, 10 insertions(+), 26 deletions(-) diff --git a/src/tss.ts b/src/tss.ts index 81d26ec..f022dfd 100644 --- a/src/tss.ts +++ b/src/tss.ts @@ -278,30 +278,23 @@ function createTss_internal< "get": (_target, ruleName) => { /* prettier-ignore */ if (typeof ruleName === "symbol") { - assert(false); - } + assert(false); + } if (isSSR) { { /* prettier-ignore */ - let wrap = nestedSelectorUsageTrackRecord.find(wrap => - wrap.name === name && - wrap.idOfUseStyles === idOfUseStyles - ); + let wrap = nestedSelectorUsageTrackRecord.find(wrap => wrap.name === name && wrap.idOfUseStyles === idOfUseStyles); /* prettier-ignore */ if (wrap === undefined) { - /* prettier-ignore */ - wrap = { - name, - idOfUseStyles, - "nestedSelectorRuleNames": new Set() - }; + /* prettier-ignore */ + wrap = { name, idOfUseStyles, "nestedSelectorRuleNames": new Set() }; - /* prettier-ignore */ - nestedSelectorUsageTrackRecord.push(wrap); - } + /* prettier-ignore */ + nestedSelectorUsageTrackRecord.push(wrap); + } /* prettier-ignore */ wrap.nestedSelectorRuleNames.add(ruleName); @@ -309,12 +302,7 @@ function createTss_internal< if ( /* prettier-ignore */ - nestedSelectorUsageTrackRecord.find( - wrap => - wrap.name === name && - wrap.idOfUseStyles !== idOfUseStyles && - wrap.nestedSelectorRuleNames.has(ruleName) - ) !== undefined + nestedSelectorUsageTrackRecord.find(wrap => wrap.name === name && wrap.idOfUseStyles !== idOfUseStyles && wrap.nestedSelectorRuleNames.has(ruleName)) !== undefined ) { throw new Error( [ @@ -332,11 +320,7 @@ function createTss_internal< } /* prettier-ignore */ - return ( - refClassesCache[ruleName] - = - `${cache.key}-${idOfUseStyles}${name !== undefined ? `-${name}` : ""}-${ruleName}-ref` - ); + return (refClassesCache[ruleName] = `${cache.key}-${idOfUseStyles}${name !== undefined ? `-${name}` : ""}-${ruleName}-ref`); } }) })