1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-15 02:17:46 +08:00

Use explicit reference equality check

This commit is contained in:
Bartłomiej Dach 2024-04-22 10:27:30 +02:00
parent 1bcf835d22
commit ceeb9b0819
No known key found for this signature in database

View File

@ -30,7 +30,7 @@ namespace osu.Game.Rulesets.Edit.Checks
foreach (var file in beatmapSet.Files) foreach (var file in beatmapSet.Files)
{ {
if (audioFile != null && file.File == audioFile.File) continue; if (audioFile != null && ReferenceEquals(file.File, audioFile.File)) continue;
using (Stream data = context.WorkingBeatmap.GetStream(file.File.GetStoragePath())) using (Stream data = context.WorkingBeatmap.GetStream(file.File.GetStoragePath()))
{ {