mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-17 06:23:03 +03:00
Replace != null with is not null
This commit is contained in:
@@ -521,7 +521,7 @@ namespace MediaBrowser.Model.Dlna
|
||||
{
|
||||
var videoStream = TargetVideoStream;
|
||||
|
||||
if (videoStream != null && videoStream.Width.HasValue && videoStream.Height.HasValue)
|
||||
if (videoStream is not null && videoStream.Width.HasValue && videoStream.Height.HasValue)
|
||||
{
|
||||
ImageDimensions size = new ImageDimensions(videoStream.Width.Value, videoStream.Height.Value);
|
||||
|
||||
@@ -540,7 +540,7 @@ namespace MediaBrowser.Model.Dlna
|
||||
{
|
||||
var videoStream = TargetVideoStream;
|
||||
|
||||
if (videoStream != null && videoStream.Width.HasValue && videoStream.Height.HasValue)
|
||||
if (videoStream is not null && videoStream.Width.HasValue && videoStream.Height.HasValue)
|
||||
{
|
||||
ImageDimensions size = new ImageDimensions(videoStream.Width.Value, videoStream.Height.Value);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user