Merge pull request #5685 from Bond-009/uselessnullcheck

Remove useless null check
This commit is contained in:
Bond-009
2021-04-03 23:50:00 +02:00
committed by GitHub

View File

@@ -26,8 +26,8 @@ namespace MediaBrowser.Common.Json.Converters
{
if (reader.TokenType == JsonTokenType.String)
{
var stringEntries = reader.GetString()?.Split(',', StringSplitOptions.RemoveEmptyEntries);
if (stringEntries == null || stringEntries.Length == 0)
var stringEntries = reader.GetString().Split(',', StringSplitOptions.RemoveEmptyEntries);
if (stringEntries.Length == 0)
{
return Array.Empty<T>();
}