mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-04 01:06:31 +00:00
More warning fixes
This commit is contained in:
@@ -32,7 +32,7 @@ namespace Emby.Server.Implementations.Sorting
|
||||
{
|
||||
var audio = x as IHasAlbumArtist;
|
||||
|
||||
return audio != null ? audio.AlbumArtists.FirstOrDefault() : null;
|
||||
return audio?.AlbumArtists.FirstOrDefault();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -18,17 +18,17 @@ namespace Emby.Server.Implementations.Sorting
|
||||
return string.Compare(GetValue(x), GetValue(y), StringComparison.CurrentCultureIgnoreCase);
|
||||
}
|
||||
|
||||
private static string GetValue(BaseItem item)
|
||||
{
|
||||
var hasSeries = item as IHasSeries;
|
||||
|
||||
return hasSeries != null ? hasSeries.FindSeriesSortName() : null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the name.
|
||||
/// </summary>
|
||||
/// <value>The name.</value>
|
||||
public string Name => ItemSortBy.SeriesSortName;
|
||||
|
||||
private static string GetValue(BaseItem item)
|
||||
{
|
||||
var hasSeries = item as IHasSeries;
|
||||
|
||||
return hasSeries?.FindSeriesSortName();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user