Removed excessive null check because string.Join can't return null (#1716)

This commit is contained in:
Damir Ainullin 2018-03-25 20:13:07 +03:00 committed by David Fowler
parent 9f0b52562c
commit dd9369ece8
1 changed files with 2 additions and 3 deletions

View File

@ -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)
{