mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-16 05:53:03 +03:00
Fix nullability errors in MediaBrowser.Model
This commit is contained in:
@@ -48,7 +48,7 @@ namespace MediaBrowser.Model.Entities
|
||||
return null;
|
||||
}
|
||||
|
||||
instance.ProviderIds.TryGetValue(name, out string id);
|
||||
instance.ProviderIds.TryGetValue(name, out string? id);
|
||||
return id;
|
||||
}
|
||||
|
||||
|
||||
@@ -177,7 +177,7 @@ namespace MediaBrowser.Model.Net
|
||||
|
||||
var ext = Path.GetExtension(path);
|
||||
|
||||
if (_mimeTypeLookup.TryGetValue(ext, out string result))
|
||||
if (_mimeTypeLookup.TryGetValue(ext, out string? result))
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user