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

@ -171,10 +171,7 @@ function buildActivityHTML(activity) {
? `<div class="activity-buttons">
${activity.buttons
.map((button, index) => {
const label =
typeof button === "string"
? button
: button.label;
const label = typeof button === "string" ? button : button.label;
let url = null;
if (typeof button === "object" && button.url) {
url = button.url;
@ -321,9 +318,7 @@ async function populateReadme(data) {
if (readmeSection && data.kv?.readme) {
const url = data.kv.readme;
try {
const res = await fetch(
`/api/readme?url=${encodeURIComponent(url)}`,
);
const res = await fetch(`/api/readme?url=${encodeURIComponent(url)}`);
if (!res.ok) throw new Error("Failed to fetch readme");
const text = await res.text();
@ -343,9 +338,7 @@ async function updatePresence(data) {
const cssLink = data.kv?.css;
if (cssLink) {
try {
const res = await fetch(
`/api/css?url=${encodeURIComponent(cssLink)}`,
);
const res = await fetch(`/api/css?url=${encodeURIComponent(cssLink)}`);
if (!res.ok) throw new Error("Failed to fetch CSS");
const cssText = await res.text();