Remove useless statement

This commit is contained in:
Bond_009 2020-01-11 21:18:30 +01:00
parent cd0592ea8f
commit ec0ef2a2c5

View File

@ -24,12 +24,8 @@ namespace Emby.Naming.Video
{
var regexes = _options.CleanDateTimeRegexes;
var len = regexes.Length;
CleanDateTimeResult result = new CleanDateTimeResult(name);
if (len == 0)
{
return result;
}
CleanDateTimeResult result = new CleanDateTimeResult(name);
for (int i = 0; i < len; i++)
{
if (TryClean(name, regexes[i], ref result))