mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 21:10:59 +00:00
style: apply prettier across the tree
One-shot prettier pass so the new format:check gate starts from a clean baseline. Formatting only — no behaviour change. Generator-owned and vendored artifacts stay untouched via .prettierignore.
This commit is contained in:
1 parent
b3fea2ef59
commit
1f4ba5939d
1000 files changed
+12130
-8385
No files matched your search
@@ -66,9 +66,7 @@ function isTolerableRequestProbeError(err: unknown): boolean {
|
||||
// Covers both modern `Cannot read properties of undefined
|
||||
// (reading 'X')` and the older `Cannot read property 'X' of
|
||||
// undefined` wordings.
|
||||
/Cannot read propert(?:y|ies)\b.*\bof (?:undefined|null)\b/.test(
|
||||
msg,
|
||||
)
|
||||
/Cannot read propert(?:y|ies)\b.*\bof (?:undefined|null)\b/.test(msg)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -144,11 +142,8 @@ export function apiHandler<T extends (...args: any[]) => Promise<Response>>(
|
||||
route: url.pathname,
|
||||
status: 200,
|
||||
user_agent:
|
||||
safeRequestProp(
|
||||
request,
|
||||
(r) => r.headers.get("user-agent"),
|
||||
null,
|
||||
) ?? undefined,
|
||||
safeRequestProp(request, (r) => r.headers.get("user-agent"), null) ??
|
||||
undefined,
|
||||
ip:
|
||||
safeRequestProp(
|
||||
request,
|
||||
|
||||
Reference in new issue
Block a user