mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-05-26 15:16:14 +00:00
Run prettier
This commit is contained in:
@@ -141,10 +141,7 @@ interface Arguments {
|
||||
config: Config;
|
||||
}
|
||||
|
||||
function getParamFromSearch(
|
||||
name: string,
|
||||
search: queryString.ParsedQuery,
|
||||
) {
|
||||
function getParamFromSearch(name: string, search: queryString.ParsedQuery) {
|
||||
const value = search[name];
|
||||
return typeof value === 'string' ? value : undefined;
|
||||
}
|
||||
|
||||
@@ -70,7 +70,7 @@ export function argsToConfig(args: ParsedQuery<unknown>): Config {
|
||||
export function configToArgs(config: Config): ParsedQuery {
|
||||
const result: ParsedQuery = {};
|
||||
const color = COLOR_ARG_INVERSE.get(config.color);
|
||||
if (color){
|
||||
if (color) {
|
||||
result.c = color;
|
||||
}
|
||||
const id = ID_ARG_INVERSE.get(config.id);
|
||||
|
||||
Reference in New Issue
Block a user