From: Alec Armbruster <35377827+alectrocute@users.noreply.github.com> Date: Sun, 25 Jun 2023 14:47:21 +0000 (-0400) Subject: fix lint error X-Git-Url: http://these/git/%24%7Bsubmission.url%7D?a=commitdiff_plain;h=9938ac6ee454ea539f9a3a5ad3d8a005942daafd;p=lemmy-ui.git fix lint error --- diff --git a/src/server/handlers/theme-handler.ts b/src/server/handlers/theme-handler.ts index eb0c8ce..456fb3b 100644 --- a/src/server/handlers/theme-handler.ts +++ b/src/server/handlers/theme-handler.ts @@ -17,15 +17,15 @@ export default async (req: Request, res: Response) => { const customTheme = path.resolve(extraThemesFolder, theme); if (existsSync(customTheme)) { - res.sendFile(customTheme); + return res.sendFile(customTheme); } else { const internalTheme = path.resolve(`./dist/assets/css/themes/${theme}`); // If the theme doesn't exist, just send litely if (existsSync(internalTheme)) { - res.sendFile(internalTheme); + return res.sendFile(internalTheme); } else { - res.sendFile(path.resolve("./dist/assets/css/themes/litely.css")); + return res.sendFile(path.resolve("./dist/assets/css/themes/litely.css")); } } };