]> Untitled Git - lemmy-ui.git/commitdiff
fix lint error
authorAlec Armbruster <35377827+alectrocute@users.noreply.github.com>
Sun, 25 Jun 2023 14:47:21 +0000 (10:47 -0400)
committerAlec Armbruster <35377827+alectrocute@users.noreply.github.com>
Sun, 25 Jun 2023 14:47:21 +0000 (10:47 -0400)
src/server/handlers/theme-handler.ts

index eb0c8ce4f8f2d02a71af1d148a1ad97146512e90..456fb3bd00e0d646d03edb6634f4d50d4d03ea94 100644 (file)
@@ -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"));
     }
   }
 };