Reduce nesting
This commit is contained in:
parent
8eaefce14e
commit
e0f513232b
|
@ -85,13 +85,15 @@ namespace MediaBrowser.MediaEncoding.Probing
|
||||||
{
|
{
|
||||||
var val = GetDictionaryValue(tags, key);
|
var val = GetDictionaryValue(tags, key);
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(val))
|
if (string.IsNullOrEmpty(val))
|
||||||
{
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
if (DateTime.TryParse(val, out var i))
|
if (DateTime.TryParse(val, out var i))
|
||||||
{
|
{
|
||||||
return i.ToUniversalTime();
|
return i.ToUniversalTime();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user