mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-10-16 16:44:53 +08:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user