mirror of https://github.com/ppy/osu
Fix known non-nulls
This commit is contained in:
parent
e2f2638212
commit
e39016bf01
|
@ -46,6 +46,6 @@ public virtual HitSampleInfo ApplyTo(HitSampleInfo hitSampleInfo)
|
|||
|
||||
public override bool EquivalentTo(ControlPoint other) =>
|
||||
other is SampleControlPoint otherTyped &&
|
||||
string.Equals(SampleBank, otherTyped?.SampleBank) && SampleVolume == otherTyped?.SampleVolume;
|
||||
string.Equals(SampleBank, otherTyped.SampleBank) && SampleVolume == otherTyped.SampleVolume;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,6 +28,6 @@ public virtual double BeatLength
|
|||
|
||||
public override bool EquivalentTo(ControlPoint other) =>
|
||||
other is TimingControlPoint otherTyped
|
||||
&& TimeSignature == otherTyped?.TimeSignature && beatLength.Equals(otherTyped.beatLength);
|
||||
&& TimeSignature == otherTyped.TimeSignature && beatLength.Equals(otherTyped.beatLength);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue