Skip to content

Commit

Permalink
Merge pull request #32081 from bdach/did-you-know-that-strings-have-c…
Browse files Browse the repository at this point in the history
…asing

Fix hash comparison being case sensitive when choosing files for partial beatmap submission
  • Loading branch information
peppy authored Feb 25, 2025
2 parents e7fefc8 + 0312467 commit b776993
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ private async Task patchBeatmapSet(ICollection<BeatmapSetFile> onlineFiles)
continue;
}

if (localHash != onlineHash)
if (!localHash.Equals(onlineHash, StringComparison.OrdinalIgnoreCase))
filesToUpdate.Add(filename);
}

Expand Down

0 comments on commit b776993

Please sign in to comment.