Simplify misc null-coalescing expression.

This commit is contained in:
Huo Yaoyuan
2017-07-18 12:28:03 +08:00
parent 11cba0638d
commit cd7c04c54d

View File

@ -122,8 +122,10 @@ namespace osu.Game.Screens.Play
audio.Track.SetExclusive(track); audio.Track.SetExclusive(track);
adjustableSourceClock = track; adjustableSourceClock = track;
} }
else
adjustableSourceClock = (IAdjustableClock)track ?? new StopwatchClock(); {
adjustableSourceClock = new StopwatchClock();
}
decoupledClock = new DecoupleableInterpolatingFramedClock { IsCoupled = false }; decoupledClock = new DecoupleableInterpolatingFramedClock { IsCoupled = false };