Fix formatting because Claude is incompetent and didn't run it itself

This commit is contained in:
James Brunton
2026-08-28 10:09:51 +01:00
parent 4d04b643c5
commit c6be528cdc
@@ -3,7 +3,11 @@
*/
export function isSafePostLoginRedirect(path: unknown): path is string {
if (typeof path !== "string" || path.length === 0) return false;
if (!path.startsWith("/") || path.startsWith("//") || path.startsWith("/\\")) {
if (
!path.startsWith("/") ||
path.startsWith("//") ||
path.startsWith("/\\")
) {
return false;
}
const lowered = path.toLowerCase();