mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-06 02:06:21 +00:00
Replace == null with is null
This commit is contained in:
@@ -190,7 +190,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
||||
|
||||
_logger.LogInformation("Found ffmpeg version {Version}", version != null ? version.ToString() : "unknown");
|
||||
|
||||
if (version == null)
|
||||
if (version is null)
|
||||
{
|
||||
if (MaxVersion != null) // Version is unknown
|
||||
{
|
||||
|
||||
@@ -531,7 +531,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
||||
throw;
|
||||
}
|
||||
|
||||
if (result == null || (result.Streams == null && result.Format == null))
|
||||
if (result is null || (result.Streams is null && result.Format is null))
|
||||
{
|
||||
throw new FfmpegException("ffprobe failed - streams and format are both null.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user