Skip to content

Commit 2aeb8c9

Browse files
committed
chore: fix lint error
1 parent 043637e commit 2aeb8c9

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

2025/src/components/Sessions/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ export async function getSessionImageUrl(sessionId: string): Promise<string> {
1313
const suffix = customExtensions[sessionId] ?? "png";
1414

1515
const imagePath = `/src/assets/sessions/${sessionId}.${suffix}`;
16-
if (images[imagePath]) {
17-
const imageModule = await images[imagePath]();
16+
const imageModuleFunction = images[imagePath];
17+
if (imageModuleFunction != null) {
18+
const imageModule = await imageModuleFunction();
1819
return imageModule.default.src;
1920
}
2021

2025/src/components/Sponsors/Individual.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ try {
1515
`../../assets/individual-sponsors/${src && src !== "" ? src : "no-icon"}.png?url`
1616
);
1717
iconUrl = module.default;
18-
} catch (e) {
18+
} catch {
1919
console.error(`Icon not found: ${src}`);
2020
}
2121
---

0 commit comments

Comments
 (0)