CA1309: compare strings correctly.

This commit is contained in:
Huo Yaoyuan
2019-11-28 22:39:09 +08:00
parent e46f6627e4
commit caf3f774ba
9 changed files with 11 additions and 10 deletions

View File

@ -70,6 +70,6 @@ namespace osu.Game.Beatmaps.ControlPoints
public override bool EquivalentTo(ControlPoint other) =>
other is SampleControlPoint otherTyped &&
string.Equals(SampleBank, otherTyped.SampleBank) && SampleVolume == otherTyped.SampleVolume;
SampleBank == otherTyped.SampleBank && SampleVolume == otherTyped.SampleVolume;
}
}