Skip to content

Commit

Permalink
lint + fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mathe42 committed Feb 12, 2023
1 parent d37b3cc commit 350b0a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/basic/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
5 changes: 2 additions & 3 deletions client/basic/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -71,7 +71,6 @@ export class SMTPConnection {
}
}


public assertCode(cmd: Command | null, code: number, msg?: string) {
if (!cmd) {
throw new Error(`invalid cmd`);
Expand Down

0 comments on commit 350b0a8

Please sign in to comment.