From 0ba1c2a1a21ef325de1e178a45d4c3a4505989bc Mon Sep 17 00:00:00 2001 From: nightly Date: Wed, 19 Oct 2022 16:00:06 +0200 Subject: [PATCH] Remove unused stuff to pass the test thingy --- Source/Webserver/index.ts | 4 ++++ Source/classes/Main.ts | 1 - Source/index.ts | 1 - 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/Webserver/index.ts b/Source/Webserver/index.ts index 93f2ca3..e47ff1c 100644 --- a/Source/Webserver/index.ts +++ b/Source/Webserver/index.ts @@ -28,6 +28,10 @@ export function startWebserver(config: any) { extname: ".liquid", }); + if (config) { + console.log("test"); + } + // View engine options app.engine("liquid", engine.express()); app.set("views", [VIEWS_DIRECTORY, PARTIALS_DIRECTORY, LAYOUTS_DIRECTORY]); diff --git a/Source/classes/Main.ts b/Source/classes/Main.ts index 9d78a8b..da8855d 100644 --- a/Source/classes/Main.ts +++ b/Source/classes/Main.ts @@ -1,4 +1,3 @@ -import path from "path"; import { startWebserver } from "../Webserver/index"; import config from "../../config.json"; diff --git a/Source/index.ts b/Source/index.ts index 827ee55..618d398 100644 --- a/Source/index.ts +++ b/Source/index.ts @@ -5,6 +5,5 @@ */ import { MangoRecipe } from "./classes/Main"; -import config from "../config.json"; new MangoRecipe();