From 302f636972952146ad0594f3010a4427b19ede79 Mon Sep 17 00:00:00 2001 From: Anthony Griffon Date: Tue, 3 Sep 2024 10:48:47 +0200 Subject: [PATCH] fix: lint --- src/main.ts | 2 +- src/routes/create_pet.ts | 2 +- src/routes/mod.ts | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main.ts b/src/main.ts index 72cc015..c8ed8b8 100644 --- a/src/main.ts +++ b/src/main.ts @@ -10,7 +10,7 @@ init({ store: petStore })(app); const listener = BunnySDK.net.tcp.unstable_new(); console.log("Listening on: ", BunnySDK.net.tcp.toString(listener)); BunnySDK.net.http.serve( - async (req) => { + (req) => { console.log(`[INFO]: ${req.method} - ${req.url}`); return app.fetch(req); }, diff --git a/src/routes/create_pet.ts b/src/routes/create_pet.ts index abf03b4..e655144 100644 --- a/src/routes/create_pet.ts +++ b/src/routes/create_pet.ts @@ -1,5 +1,5 @@ import { addNewPet, newPet } from "../domain/pets.ts"; -import { App, createRoute, z } from "../infrastructure/mod.ts"; +import { App, createRoute } from "../infrastructure/mod.ts"; import { State } from "./state.ts"; import { petSchema } from "./ty.ts"; diff --git a/src/routes/mod.ts b/src/routes/mod.ts index ab24374..0bfdd6a 100644 --- a/src/routes/mod.ts +++ b/src/routes/mod.ts @@ -1,5 +1,4 @@ import { App } from "../infrastructure/mod.ts"; -import { petStore } from "../domain/pets.ts"; import { State } from "./state.ts"; import { addListPetsRoutes } from "./list_pets.ts"; import { addCreatePetRoute } from "./create_pet.ts";