Skip to content

Commit

Permalink
Appease Mr Linter
Browse files Browse the repository at this point in the history
  • Loading branch information
bdach committed Apr 22, 2024
1 parent 7ce7379 commit b589471
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Http/Controllers/ScoresController.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,9 @@ public function show($rulesetOrSoloId, $legacyId = null)
// which correspond to rows from `osu_scores_*` (non-high) tables.
// do not attempt to perform lookups for zero to avoid weird results.
// negative IDs should never occur (ID columns in score tables are all `bigint unsigned`).
if ($legacyId <= 0)
if ($legacyId <= 0) {
abort(404, 'invalid score ID');
}

$scoreQuery = SoloScore::where([
'ruleset_id' => Ruleset::tryFromName($rulesetOrSoloId) ?? abort(404, 'unknown ruleset name'),
Expand Down

0 comments on commit b589471

Please sign in to comment.