mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-27 01:50:53 +01:00
Code Clean up: Convert to null-coalescing operator ?? (#5845)
Co-authored-by: Cody Robibero <cody@robibe.ro> Co-authored-by: Patrick Barron <18354464+barronpm@users.noreply.github.com>
This commit is contained in:
@@ -111,10 +111,7 @@ namespace MediaBrowser.Providers.MediaInfo
|
||||
}
|
||||
}
|
||||
|
||||
if (streamFileNames == null)
|
||||
{
|
||||
streamFileNames = Array.Empty<string>();
|
||||
}
|
||||
streamFileNames ??= Array.Empty<string>();
|
||||
|
||||
mediaInfoResult = await GetMediaInfo(item, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
|
||||
@@ -256,10 +256,7 @@ namespace MediaBrowser.Providers.Subtitles
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
if (exceptionToThrow == null)
|
||||
{
|
||||
exceptionToThrow = ex;
|
||||
}
|
||||
exceptionToThrow ??= ex;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user