From a2de4f12d8c43b44d950d4c58a705697af33c895 Mon Sep 17 00:00:00 2001 From: powermaker450 Date: Wed, 21 Aug 2024 02:35:50 -0400 Subject: [PATCH] Remove unused imports --- src/routes/post.ts | 6 ++---- src/utils/functions.ts | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/routes/post.ts b/src/routes/post.ts index affb9f7..85a1288 100644 --- a/src/routes/post.ts +++ b/src/routes/post.ts @@ -1,6 +1,5 @@ -import fs from "fs"; -import { ServerSideReview, userReviewSchema, typeJson } from "../types"; -import { bold, checkFile, emp, Logger, responder } from "../utils"; +import { userReviewSchema, typeJson } from "../types"; +import { bold, emp, Logger, responder } from "../utils"; import { Express, Request, Response } from "express"; import { ReviewData } from "../utils/ReviewData"; @@ -19,7 +18,6 @@ export class PostListener { req.on("data", async (chunk) => { const sender = `${bold(emp("Client:"))} ${emp(req.headers["user-agent"])}`; - let data: ServerSideReview[] = checkFile("data.json", "utf8"); let temp: any; try { diff --git a/src/utils/functions.ts b/src/utils/functions.ts index 137edf1..17a7bc5 100644 --- a/src/utils/functions.ts +++ b/src/utils/functions.ts @@ -1,5 +1,5 @@ import fs from "fs"; -import { serverReviewSchema, ServerSideReview, UserSideReview } from "../types"; +import { ServerSideReview, UserSideReview } from "../types"; export function checkFile( file: string,