From 92da2f459ac66272295de6f8c3a98ef94a978fe2 Mon Sep 17 00:00:00 2001 From: OsirisAnubis Date: Tue, 5 Nov 2024 10:34:35 +0300 Subject: [PATCH] style: remove async from startServer method --- packages/nestjs-connectrpc/src/connectrpc.server.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/nestjs-connectrpc/src/connectrpc.server.ts b/packages/nestjs-connectrpc/src/connectrpc.server.ts index c119d08a..c6e8e7c5 100644 --- a/packages/nestjs-connectrpc/src/connectrpc.server.ts +++ b/packages/nestjs-connectrpc/src/connectrpc.server.ts @@ -73,7 +73,8 @@ export class HTTPServer { ) } - async startServer(): Promise { + // eslint-disable-next-line @typescript-eslint/promise-function-async + startServer(): Promise { return new Promise((resolve, reject) => { switch (this.options.protocol) { case ServerProtocol.HTTP: {