mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 04:02:59 +08:00
Remove unnecessary checks on NotNull attributes
This commit is contained in:
parent
ffc7eaa3f2
commit
401bf1c928
@ -99,12 +99,9 @@ namespace osu.Game.Rulesets.Objects.Drawables
|
||||
{
|
||||
var judgement = HitObject.CreateJudgement();
|
||||
|
||||
if (judgement != null)
|
||||
{
|
||||
Result = CreateResult(judgement);
|
||||
if (Result == null)
|
||||
throw new InvalidOperationException($"{GetType().ReadableName()} must provide a {nameof(JudgementResult)} through {nameof(CreateResult)}.");
|
||||
}
|
||||
Result = CreateResult(judgement);
|
||||
if (Result == null)
|
||||
throw new InvalidOperationException($"{GetType().ReadableName()} must provide a {nameof(JudgementResult)} through {nameof(CreateResult)}.");
|
||||
|
||||
loadSamples();
|
||||
}
|
||||
|
@ -125,8 +125,6 @@ namespace osu.Game.Rulesets.Scoring
|
||||
simulate(nested);
|
||||
|
||||
var judgement = obj.CreateJudgement();
|
||||
if (judgement == null)
|
||||
return;
|
||||
|
||||
var result = CreateResult(obj, judgement);
|
||||
if (result == null)
|
||||
|
Loading…
Reference in New Issue
Block a user