mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-10-22 16:51:39 +00:00
More warning fixes
This commit is contained in:
parent
1d443d2ff5
commit
bf43dc00bb
12 changed files with 532 additions and 487 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue