mirror of https://github.com/ppy/osu
Throw instead of null return
This commit is contained in:
parent
2869128e11
commit
5551343cf3
|
@ -46,7 +46,7 @@ protected override DrawableHitObject CreateNestedHitObject(HitObject hitObject)
|
|||
((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