From 350b0a820171e9fb075809dedf0cf11962afb6ab Mon Sep 17 00:00:00 2001 From: mathe42 <2pi_r2@gmx.de> Date: Sun, 12 Feb 2023 20:48:32 +0100 Subject: [PATCH] lint + fmt --- client/basic/client.ts | 2 +- client/basic/connection.ts | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/client/basic/client.ts b/client/basic/client.ts index 2ca55d3..bef8663 100644 --- a/client/basic/client.ts +++ b/client/basic/client.ts @@ -334,7 +334,7 @@ export class SMTPClient { ) { this.#connection.writeCmdAndAssert(CommandCode.READY, "STARTTLS"); - await this.#connection.cleanupForStartTLS() + await this.#connection.cleanupForStartTLS(); const conn = await Deno.startTls(this.#connection.conn, { hostname: this.config.connection.hostname, diff --git a/client/basic/connection.ts b/client/basic/connection.ts index 91331f8..d7f10da 100644 --- a/client/basic/connection.ts +++ b/client/basic/connection.ts @@ -37,8 +37,8 @@ export class SMTPConnection { } async cleanupForStartTLS() { - await this.#reader.cancel() - await this.#writer.close() + await this.#reader.cancel(); + await this.#writer.close(); } async readLine() { @@ -71,7 +71,6 @@ export class SMTPConnection { } } - public assertCode(cmd: Command | null, code: number, msg?: string) { if (!cmd) { throw new Error(`invalid cmd`);