style: remove private getter for getInstructions

This commit is contained in:
Kalvin Chau 2025-01-13 09:50:02 -08:00
commit 1bb51d0fca

View file

@ -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);
}