1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 17:23:22 +08:00

Throw instead of null return

This commit is contained in:
Dean Herbert 2020-02-20 15:45:25 +09:00
parent 2869128e11
commit 5551343cf3

View File

@ -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)}.");
} }
} }
} }