style(route/wordpress): drop the case braces left by the switch autofix

Same autofix as in seu: the prefer-switch fixer left braced cases that
unicorn/switch-case-braces "avoid" rejects. The Format workflow fixed
these in its own checkout but stopped on the seu errors before
committing, so lint without --fix still fails here.
This commit is contained in:
pseudoyu
2026-10-14 21:32:04 +08:00
parent 9071f933f1
commit 66411e5503
+6 -6
View File
@@ -166,21 +166,21 @@ const bakeSiteSearchParams = (filterPairs: Record<string, Filter[] | string[]>):
continue;
}
switch (key) {
case 'category': {
case 'category':
searchParams.set('cat', (value as Filter[]).map((pair) => pair.id).join(','));
break;
}
case 'tag': {
case 'tag':
searchParams.set('tag', (value as Filter[]).map((pair) => pair.slug).join(','));
break;
}
case 'search': {
case 'search':
searchParams.set('s', value.join(','));
break;
}
default:
// Do nothing
}