Remove conditional access when it is known to be not null

This commit is contained in:
Stepan Goremykin
2023-10-08 00:46:15 +02:00
parent 526f9a825c
commit 47254d6a22
3 changed files with 7 additions and 7 deletions

View File

@@ -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;