From bd758ff901ba8f99d027bcce8c395bf12e53f31f Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Thu, 19 Feb 2026 19:41:35 -0800 Subject: [PATCH] Remove dead code: `options ??= new()` in McpServerImpl constructor (#1322) Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com> --- src/ModelContextProtocol.Core/Server/McpServerImpl.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/ModelContextProtocol.Core/Server/McpServerImpl.cs b/src/ModelContextProtocol.Core/Server/McpServerImpl.cs index 8bf2b11..52e538e 100644 --- a/src/ModelContextProtocol.Core/Server/McpServerImpl.cs +++ b/src/ModelContextProtocol.Core/Server/McpServerImpl.cs @@ -58,8 +58,6 @@ internal sealed partial class McpServerImpl : McpServer Throw.IfNull(transport); Throw.IfNull(options); - options ??= new(); - _sessionTransport = transport; ServerOptions = options; Services = serviceProvider;