]> Untitled Git - lemmy-ui.git/commitdiff
Fixing lints. (#1686)
authorDessalines <dessalines@users.noreply.github.com>
Thu, 29 Jun 2023 05:24:52 +0000 (01:24 -0400)
committerGitHub <noreply@github.com>
Thu, 29 Jun 2023 05:24:52 +0000 (01:24 -0400)
src/server/handlers/security-handler.ts
src/server/index.tsx

index ceece139211bbaae171b9ba543f7f8fd7e641b1c..0aed0cdc1035d7fc9f517a232ce163c9b95f52b0 100644 (file)
@@ -3,9 +3,15 @@ import type { Response } from "express";
 export default async ({ res }: { res: Response }) => {
   res.setHeader("content-type", "text/plain; charset=utf-8");
 
-  res.send(`Contact: mailto:security@lemmy.ml
-  Contact: mailto:admin@` + process.env.LEMMY_UI_LEMMY_EXTERNAL_HOST + `
-  Contact: mailto:security@` + process.env.LEMMY_UI_LEMMY_EXTERNAL_HOST + `
+  res.send(
+    `Contact: mailto:security@lemmy.ml
+  Contact: mailto:admin@` +
+      process.env.LEMMY_UI_LEMMY_EXTERNAL_HOST +
+      `
+  Contact: mailto:security@` +
+      process.env.LEMMY_UI_LEMMY_EXTERNAL_HOST +
+      `
   Expires: 2024-01-01T04:59:00.000Z
-  `);
+  `
+  );
 };
index e8966418c8467b381eedc48b1be1fc01e74997ab..270f33c6837b957ca7d282c80bc1c551f0b702e5 100644 (file)
@@ -4,8 +4,8 @@ import path from "path";
 import process from "process";
 import CatchAllHandler from "./handlers/catch-all-handler";
 import ManifestHandler from "./handlers/manifest-handler";
-import SecurityHandler from "./handlers/security-handler";
 import RobotsHandler from "./handlers/robots-handler";
+import SecurityHandler from "./handlers/security-handler";
 import ServiceWorkerHandler from "./handlers/service-worker-handler";
 import ThemeHandler from "./handlers/theme-handler";
 import ThemesListHandler from "./handlers/themes-list-handler";