Skip to content

Commit 74c4b01

Browse files
committed
tweak
1 parent 1dcbc0b commit 74c4b01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ModelContextProtocol/Client/McpClientTool.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ public McpClientTool WithDescription(string? description)
4949
public Tool ProtocolTool { get; }
5050

5151
/// <inheritdoc/>
52-
public override string Name => _name ?? ProtocolTool.Name;
52+
public override string Name => _name!;
5353

5454
/// <inheritdoc/>
55-
public override string Description => _description ?? ProtocolTool.Description ?? string.Empty;
55+
public override string Description => _description ?? string.Empty;
5656

5757
/// <inheritdoc/>
5858
public override JsonElement JsonSchema => ProtocolTool.InputSchema;

0 commit comments

Comments
 (0)