mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Use pattern matching wherever possible
This commit is contained in:
@ -118,8 +118,7 @@ namespace osu.Game.Overlays
|
||||
|
||||
notification.Closed += notificationClosed;
|
||||
|
||||
var hasCompletionTarget = notification as IHasCompletionTarget;
|
||||
if (hasCompletionTarget != null)
|
||||
if (notification is IHasCompletionTarget hasCompletionTarget)
|
||||
hasCompletionTarget.CompletionTarget = Post;
|
||||
|
||||
var ourType = notification.GetType();
|
||||
|
Reference in New Issue
Block a user