mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-16 14:03:03 +03:00
Remove conditional access when it is known to be not null
This commit is contained in:
@@ -294,8 +294,8 @@ public class LibraryController : BaseJellyfinApiController
|
||||
|
||||
return new AllThemeMediaResult
|
||||
{
|
||||
ThemeSongsResult = themeSongs?.Value,
|
||||
ThemeVideosResult = themeVideos?.Value,
|
||||
ThemeSongsResult = themeSongs.Value,
|
||||
ThemeVideosResult = themeVideos.Value,
|
||||
SoundtrackSongsResult = new ThemeMediaResult()
|
||||
};
|
||||
}
|
||||
@@ -490,7 +490,7 @@ public class LibraryController : BaseJellyfinApiController
|
||||
|
||||
baseItemDtos.Add(_dtoService.GetBaseItemDto(parent, dtoOptions, user));
|
||||
|
||||
parent = parent?.GetParent();
|
||||
parent = parent.GetParent();
|
||||
}
|
||||
|
||||
return baseItemDtos;
|
||||
|
||||
Reference in New Issue
Block a user