Reduce nesting

This commit is contained in:
Maxr1998 2021-04-04 14:58:20 +02:00
parent 8eaefce14e
commit e0f513232b
No known key found for this signature in database
GPG Key ID: ECECF0D4F4816C81

View File

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