mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 05:47:14 -04:00
Merge pull request #5685 from Bond-009/uselessnullcheck
Remove useless null check
This commit is contained in:
commit
ea2bd3398b
@ -26,8 +26,8 @@ namespace MediaBrowser.Common.Json.Converters
|
|||||||
{
|
{
|
||||||
if (reader.TokenType == JsonTokenType.String)
|
if (reader.TokenType == JsonTokenType.String)
|
||||||
{
|
{
|
||||||
var stringEntries = reader.GetString()?.Split(',', StringSplitOptions.RemoveEmptyEntries);
|
var stringEntries = reader.GetString().Split(',', StringSplitOptions.RemoveEmptyEntries);
|
||||||
if (stringEntries == null || stringEntries.Length == 0)
|
if (stringEntries.Length == 0)
|
||||||
{
|
{
|
||||||
return Array.Empty<T>();
|
return Array.Empty<T>();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user