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
1 changed files with 7 additions and 5 deletions

View File

@ -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;