1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-20 01:42:35 +01:00

Remove extraneous indentation in RemoveFileExtension

(cherry picked from commit dca5239420e21f91c1d67bc8bbb14cdb13c8d5d9)
This commit is contained in:
Marc Carbonell 2024-07-17 06:33:34 +02:00 committed by Bogdan
parent 7a90b4a6b2
commit b490177a77

View File

@ -569,15 +569,15 @@ public static string ParseReleaseGroup(string title)
public static string RemoveFileExtension(string title)
{
title = FileExtensionRegex.Replace(title, m =>
{
var extension = m.Value.ToLower();
if (MediaFiles.MediaFileExtensions.Extensions.Contains(extension) || new[] { ".par2", ".nzb" }.Contains(extension))
{
var extension = m.Value.ToLower();
if (MediaFiles.MediaFileExtensions.Extensions.Contains(extension) || new[] { ".par2", ".nzb" }.Contains(extension))
{
return string.Empty;
}
return string.Empty;
}
return m.Value;
});
return m.Value;
});
return title;
}