Fix nullability errors in MediaBrowser.Model

pull/4480/head
crobibero 4 years ago
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…
Cancel
Save