Fix lint
All checks were successful
Code quality checks / biome (push) Successful in 8s

This commit is contained in:
creations 2025-04-26 11:18:13 -04:00
parent b480f165ea
commit c867c57a26
Signed by: creations
GPG key ID: 8F553AA4320FC711
2 changed files with 5 additions and 16 deletions

View file

@ -49,10 +49,7 @@ async function fetchAndCacheReadme(url: string): Promise<string | null> {
if (!res.ok) return null;
if (res.headers.has("content-length")) {
const size = Number.parseInt(
res.headers.get("content-length") || "0",
10,
);
const size = Number.parseInt(res.headers.get("content-length") || "0", 10);
if (size > 1024 * 100) return null;
}
@ -107,8 +104,7 @@ async function handler(request: ExtendedRequest): Promise<Response> {
return new Response(safe, {
headers: {
"Content-Type": "text/html; charset=utf-8",
"Cache-Control":
"no-store, no-cache, must-revalidate, proxy-revalidate",
"Cache-Control": "no-store, no-cache, must-revalidate, proxy-revalidate",
Pragma: "no-cache",
Expires: "0",
},