From 49dc0e3fe08ddfd369ae83b7f359ed3f6bb932a3 Mon Sep 17 00:00:00 2001 From: Michael Wolf Date: Sat, 10 Jan 2026 08:54:51 -0600 Subject: [PATCH] Mark several unused vars as such --- express/app.ts | 2 +- express/logging.ts | 4 ++-- express/routes.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/express/app.ts b/express/app.ts index 1967cd3..592a1cd 100644 --- a/express/app.ts +++ b/express/app.ts @@ -37,7 +37,7 @@ const processedRoutes: { [K in Method]: ProcessedRoute[] } = { DELETE: [], }; -function isPromise(value: T | Promise): value is Promise { +function _isPromise(value: T | Promise): value is Promise { return typeof (value as any)?.then === "function"; } diff --git a/express/logging.ts b/express/logging.ts index 629cfbc..5bf417d 100644 --- a/express/logging.ts +++ b/express/logging.ts @@ -15,8 +15,8 @@ type Message = { text: AtLeastOne; }; -const m1: Message = { timestamp: 123, source: "logging", text: ["foo"] }; -const m2: Message = { +const _m1: Message = { timestamp: 123, source: "logging", text: ["foo"] }; +const _m2: Message = { timestamp: 321, source: "diagnostic", text: ["ok", "whatever"], diff --git a/express/routes.ts b/express/routes.ts index 63f3060..dcb7214 100644 --- a/express/routes.ts +++ b/express/routes.ts @@ -41,7 +41,7 @@ const routes: Route[] = [ { path: "/list", methods: ["GET"], - handler: async (call: Call): Promise => { + handler: async (_call: Call): Promise => { const code = httpCodes.success.OK; const lr = (rr: Route[]) => { const ret = rr.map((r: Route) => { @@ -67,7 +67,7 @@ const routes: Route[] = [ `; const result = nunjucks.renderString(template, { rrr }); - const listing = lr(routes).join(", "); + const _listing = lr(routes).join(", "); return { code, result,