Removed excessive null check because string.Join can't return null (#1716)
This commit is contained in:
parent
9f0b52562c
commit
dd9369ece8
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue