mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 19:03:08 +08:00
Throw instead of null return
This commit is contained in:
parent
2869128e11
commit
5551343cf3
@ -46,7 +46,7 @@ namespace osu.Game.Rulesets.Catch.Objects.Drawable
|
|||||||
((DrawableCatchHitObject)o).CheckPosition = p => CheckPosition?.Invoke(p) ?? false);
|
((DrawableCatchHitObject)o).CheckPosition = p => CheckPosition?.Invoke(p) ?? false);
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
throw new ArgumentException($"{nameof(hitObject)} must be of type {nameof(CatchHitObject)}.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user