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