mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[Refactor] Use string comparison to compare strings.
This commit is contained in:
@@ -840,11 +840,15 @@ public sealed partial class BlindWrite5
|
||||
.ToList();
|
||||
|
||||
if(fileCharsForThisTrack.Count == 0 &&
|
||||
_filePaths.Any(static f => Path.GetExtension(f.FilePath).ToLowerInvariant() == ".b00"))
|
||||
_filePaths.Any(static f => string.Equals(Path.GetExtension(f.FilePath),
|
||||
".b00",
|
||||
StringComparison.InvariantCultureIgnoreCase)))
|
||||
{
|
||||
DataFileCharacteristics splitStartChars =
|
||||
_filePaths.FirstOrDefault(static f => Path.GetExtension(f.FilePath).ToLowerInvariant() ==
|
||||
".b00");
|
||||
_filePaths.FirstOrDefault(static f => string.Equals(Path.GetExtension(f.FilePath),
|
||||
".b00",
|
||||
StringComparison
|
||||
.InvariantCultureIgnoreCase));
|
||||
|
||||
string filename = Path.GetFileNameWithoutExtension(splitStartChars.FilePath);
|
||||
var lowerCaseExtension = false;
|
||||
|
||||
Reference in New Issue
Block a user