From 04fe1f1bfe3a5339eca7f175e10ef019fa9ba099 Mon Sep 17 00:00:00 2001 From: Blake Matthes Date: Wed, 31 Dec 2025 15:14:33 -0600 Subject: [PATCH] ci(linter errors): fixes for linting errors to make it more happy --- backend/src/utils/sendEmail.utils.ts | 8 ++++---- tests/examplequery.test.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/src/utils/sendEmail.utils.ts b/backend/src/utils/sendEmail.utils.ts index 45393e7..e6e2034 100644 --- a/backend/src/utils/sendEmail.utils.ts +++ b/backend/src/utils/sendEmail.utils.ts @@ -1,13 +1,13 @@ +import os from "node:os"; +import path from "node:path"; +import { fileURLToPath } from "node:url"; +import { promisify } from "node:util"; import type { Transporter } from "nodemailer"; import nodemailer from "nodemailer"; import type Mail from "nodemailer/lib/mailer/index.js"; import type { Address } from "nodemailer/lib/mailer/index.js"; import type SMTPTransport from "nodemailer/lib/smtp-transport/index.js"; import hbs from "nodemailer-express-handlebars"; -import os from "os"; -import path from "path"; -import { fileURLToPath } from "url"; -import { promisify } from "util"; import { returnFunc } from "./returnHelper.utils.js"; import { tryCatch } from "./trycatch.utils.js"; diff --git a/tests/examplequery.test.ts b/tests/examplequery.test.ts index 8ad85d9..49bbf17 100644 --- a/tests/examplequery.test.ts +++ b/tests/examplequery.test.ts @@ -12,7 +12,7 @@ describe("Prod SQL connection", () => { }); afterAll(async () => { - if (pool && pool.close) await pool.close(); + if (pool?.close) await pool.close(); }); it("should connect and return expected data", async () => {