mirror of
https://github.com/lidarr/Lidarr
synced 2025-01-02 21:15:05 +00:00
Remove extraneous indentation in RemoveFileExtension
(cherry picked from commit dca5239420e21f91c1d67bc8bbb14cdb13c8d5d9)
This commit is contained in:
parent
d845d73130
commit
a9dd947eed
1 changed files with 7 additions and 7 deletions
|
@ -593,15 +593,15 @@ public static string ParseReleaseGroup(string title)
|
||||||
public static string RemoveFileExtension(string title)
|
public static string RemoveFileExtension(string title)
|
||||||
{
|
{
|
||||||
title = FileExtensionRegex.Replace(title, m =>
|
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();
|
return string.Empty;
|
||||||
if (MediaFiles.MediaFileExtensions.Extensions.Contains(extension) || new[] { ".par2", ".nzb" }.Contains(extension))
|
}
|
||||||
{
|
|
||||||
return string.Empty;
|
|
||||||
}
|
|
||||||
|
|
||||||
return m.Value;
|
return m.Value;
|
||||||
});
|
});
|
||||||
|
|
||||||
return title;
|
return title;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue