mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 06:52:56 +08:00
Add assert to appease rider/r#
This commit is contained in:
parent
36a671e306
commit
6e16f2a3c3
@ -3,6 +3,7 @@
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
@ -43,6 +44,9 @@ namespace osu.Game.Screens.Edit.Screens.Compose.Layers
|
||||
|
||||
public override void Add(HitObjectMask drawable)
|
||||
{
|
||||
// Rider 2018.1 requires this (roslyn analyser issue?)
|
||||
Debug.Assert(drawable != null);
|
||||
|
||||
base.Add(drawable);
|
||||
|
||||
drawable.Selected += onMaskSelected;
|
||||
@ -53,6 +57,9 @@ namespace osu.Game.Screens.Edit.Screens.Compose.Layers
|
||||
|
||||
public override bool Remove(HitObjectMask drawable)
|
||||
{
|
||||
// Rider 2018.1 requires this (roslyn analyser issue?)
|
||||
Debug.Assert(drawable != null);
|
||||
|
||||
var result = base.Remove(drawable);
|
||||
|
||||
if (result)
|
||||
|
Loading…
Reference in New Issue
Block a user