Browse Source

Remove useless statement

Bond_009 5 years ago
parent
commit
ec0ef2a2c5
1 changed files with 1 additions and 5 deletions
  1. 1 5
      Emby.Naming/Video/CleanDateTimeParser.cs

+ 1 - 5
Emby.Naming/Video/CleanDateTimeParser.cs

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