Преглед изворни кода

Update Emby.Naming/Video/CleanStringParser.cs

Cleaned up code a bit

Co-authored-by: Claus Vium <cvium@users.noreply.github.com>

sushilicious пре 3 година
родитељ
комит
6bc7d78f6f
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      Emby.Naming/Video/CleanStringParser.cs

+ 1 - 1
Emby.Naming/Video/CleanStringParser.cs

@@ -37,7 +37,7 @@ namespace Emby.Naming.Video
             }
 
             newName = cleaned ? name.AsSpan() : ReadOnlySpan<char>.Empty;
-            return newName != ReadOnlySpan<char>.Empty;
+            return cleaned;
         }
 
         private static bool TryClean(string name, Regex expression, out ReadOnlySpan<char> newName)