[ci] format

This commit is contained in:
matthewp 2023-07-28 16:02:32 +00:00 committed by astrobot-houston
parent 861f10eafd
commit 8867f3c99d

View file

@ -10,7 +10,9 @@ export function serializeRouteData(
...routeData, ...routeData,
generate: undefined, generate: undefined,
pattern: routeData.pattern.source, pattern: routeData.pattern.source,
redirectRoute: routeData.redirectRoute ? serializeRouteData(routeData.redirectRoute, trailingSlash) : undefined, redirectRoute: routeData.redirectRoute
? serializeRouteData(routeData.redirectRoute, trailingSlash)
: undefined,
_meta: { trailingSlash }, _meta: { trailingSlash },
}; };
} }
@ -27,6 +29,8 @@ export function deserializeRouteData(rawRouteData: SerializedRouteData): RouteDa
segments: rawRouteData.segments, segments: rawRouteData.segments,
prerender: rawRouteData.prerender, prerender: rawRouteData.prerender,
redirect: rawRouteData.redirect, redirect: rawRouteData.redirect,
redirectRoute: rawRouteData.redirectRoute ? deserializeRouteData(rawRouteData.redirectRoute) : undefined, redirectRoute: rawRouteData.redirectRoute
? deserializeRouteData(rawRouteData.redirectRoute)
: undefined,
}; };
} }