mirror of
https://github.com/Radarr/Radarr
synced 2026-01-25 08:53:02 +01:00
fix(style): remove unused using, use AsSpan over Substring
This commit is contained in:
parent
79481d5491
commit
e43ea2682c
1 changed files with 1 additions and 2 deletions
|
|
@ -5,7 +5,6 @@
|
|||
using NzbDrone.Common;
|
||||
using NzbDrone.Common.Disk;
|
||||
using NzbDrone.Core.Configuration;
|
||||
using NzbDrone.Core.MediaFiles;
|
||||
|
||||
namespace NzbDrone.Core.Download
|
||||
{
|
||||
|
|
@ -139,7 +138,7 @@ private bool IsPartOfMultiVolumeArchive(string path)
|
|||
|
||||
if (extension.StartsWith(".r", StringComparison.OrdinalIgnoreCase) &&
|
||||
extension.Length == 4 &&
|
||||
int.TryParse(extension.Substring(2), out _))
|
||||
int.TryParse(extension.AsSpan(2), out _))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue