Skip to content

Commit 1bb51d0

Browse files
committed
style: remove private getter for getInstructions
1 parent 54472d2 commit 1bb51d0

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/server/index.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ export class Server<
241241
: LATEST_PROTOCOL_VERSION,
242242
capabilities: this.getCapabilities(),
243243
serverInfo: this._serverInfo,
244-
...(this.getInstructions() && { instructions: this.getInstructions() }),
244+
...(this._instructions && { instructions: this._instructions }),
245245
};
246246
}
247247

@@ -263,10 +263,6 @@ export class Server<
263263
return this._capabilities;
264264
}
265265

266-
private getInstructions(): string | undefined {
267-
return this._instructions;
268-
}
269-
270266
async ping() {
271267
return this.request({ method: "ping" }, EmptyResultSchema);
272268
}

0 commit comments

Comments
 (0)