Reduce nesting

pull/5693/head
Maxr1998 4 years ago
parent 8eaefce14e
commit e0f513232b
No known key found for this signature in database
GPG Key ID: ECECF0D4F4816C81

@ -85,12 +85,14 @@ namespace MediaBrowser.MediaEncoding.Probing
{ {
var val = GetDictionaryValue(tags, key); var val = GetDictionaryValue(tags, key);
if (!string.IsNullOrEmpty(val)) if (string.IsNullOrEmpty(val))
{ {
if (DateTime.TryParse(val, out var i)) return null;
{ }
return i.ToUniversalTime();
} if (DateTime.TryParse(val, out var i))
{
return i.ToUniversalTime();
} }
return null; return null;

Loading…
Cancel
Save