From 1bb51d0fca026c5ff7a1b443dd61614ed8d54dc9 Mon Sep 17 00:00:00 2001 From: Kalvin Chau Date: Mon, 13 Jan 2025 09:50:02 -0800 Subject: [PATCH] style: remove private getter for getInstructions --- src/server/index.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/server/index.ts b/src/server/index.ts index ae34d03d..0333ad87 100644 --- a/src/server/index.ts +++ b/src/server/index.ts @@ -241,7 +241,7 @@ export class Server< : LATEST_PROTOCOL_VERSION, capabilities: this.getCapabilities(), serverInfo: this._serverInfo, - ...(this.getInstructions() && { instructions: this.getInstructions() }), + ...(this._instructions && { instructions: this._instructions }), }; } @@ -263,10 +263,6 @@ export class Server< return this._capabilities; } - private getInstructions(): string | undefined { - return this._instructions; - } - async ping() { return this.request({ method: "ping" }, EmptyResultSchema); }