style: format code biome
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
export interface ProxyToken {
|
||||
rank?: unknown;
|
||||
rank?: unknown;
|
||||
}
|
||||
|
||||
export function shouldRedirectAdminRequest(pathname: string, token: ProxyToken | null): boolean {
|
||||
if (pathname !== "/admin" && !pathname.startsWith("/admin/")) return false;
|
||||
return token === null;
|
||||
export function shouldRedirectAdminRequest(
|
||||
pathname: string,
|
||||
token: ProxyToken | null,
|
||||
): boolean {
|
||||
if (pathname !== "/admin" && !pathname.startsWith("/admin/")) return false;
|
||||
return token === null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user