Throw instead of null return

This commit is contained in:
Dean Herbert 2020-02-20 15:45:25 +09:00
parent 2869128e11
commit 5551343cf3
1 changed files with 1 additions and 1 deletions

View File

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