style(portal-bff): apply prettier to check-database-url.ts
CI / commits (pull_request) Successful in 1m32s
CI / scan (pull_request) Successful in 1m42s
CI / check (pull_request) Successful in 1m44s
CI / a11y (pull_request) Successful in 1m34s
CI / perf (pull_request) Successful in 3m21s

Cosmetic-only — collapses one over-cautious multi-line
`throw new Error(...)` into a single line that fits within the
project's 100-char `printWidth`.

The reformat was produced by lint-staged DURING the amend that
landed #70, but applied to the working tree only — the modification
never made it back into the staged content of the amend, so the
merged commit has the un-prettified version. Spotted because
`pnpm exec prettier --check` fails locally; left unchecked, this
would break the next PR's `check` job at `format:check`.

No behavioural change.
This commit is contained in:
Julien Gautier
2026-05-09 22:41:19 +02:00
parent b74d3f1b9b
commit ab8f2c82ae
@@ -34,9 +34,7 @@ export function assertDatabaseUrl(): void {
} }
if (parsed.protocol !== 'postgresql:' && parsed.protocol !== 'postgres:') { if (parsed.protocol !== 'postgresql:' && parsed.protocol !== 'postgres:') {
throw new Error( throw new Error(`DATABASE_URL must use the "postgresql://" scheme; got "${parsed.protocol}".`);
`DATABASE_URL must use the "postgresql://" scheme; got "${parsed.protocol}".`,
);
} }
// Heuristic — multiple "@" before the path almost always means the // Heuristic — multiple "@" before the path almost always means the