From dca5239420e21f91c1d67bc8bbb14cdb13c8d5d9 Mon Sep 17 00:00:00 2001 From: Marc Carbonell <32465384+eagnoor@users.noreply.github.com> Date: Wed, 17 Jul 2024 06:33:34 +0200 Subject: [PATCH] Remove extraneous indentation in RemoveFileExtension --- src/NzbDrone.Core/Parser/Parser.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/NzbDrone.Core/Parser/Parser.cs b/src/NzbDrone.Core/Parser/Parser.cs index fabdd8498..d8a3efa5c 100644 --- a/src/NzbDrone.Core/Parser/Parser.cs +++ b/src/NzbDrone.Core/Parser/Parser.cs @@ -940,15 +940,15 @@ namespace NzbDrone.Core.Parser 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; }