diff --git a/src/Microsoft.AspNetCore.SignalR.Common/Internal/Protocol/HubMethodInvocationMessage.cs b/src/Microsoft.AspNetCore.SignalR.Common/Internal/Protocol/HubMethodInvocationMessage.cs index 4845247b78..a37c4a5ab1 100644 --- a/src/Microsoft.AspNetCore.SignalR.Common/Internal/Protocol/HubMethodInvocationMessage.cs +++ b/src/Microsoft.AspNetCore.SignalR.Common/Internal/Protocol/HubMethodInvocationMessage.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Collections.Generic; using System.Linq; using System.Runtime.ExceptionServices; @@ -72,7 +71,7 @@ namespace Microsoft.AspNetCore.SignalR.Internal.Protocol string args; try { - args = string.Join(", ", Arguments?.Select(a => a?.ToString())) ?? string.Empty; + args = string.Join(", ", Arguments?.Select(a => a?.ToString())); } catch (Exception ex) { @@ -98,7 +97,7 @@ namespace Microsoft.AspNetCore.SignalR.Internal.Protocol string args; try { - args = string.Join(", ", Arguments?.Select(a => a?.ToString())) ?? string.Empty; + args = string.Join(", ", Arguments?.Select(a => a?.ToString())); } catch (Exception ex) {