Skip to content

Commit

Permalink
Add curly braces
Browse files Browse the repository at this point in the history
  • Loading branch information
araszka committed Sep 21, 2024
1 parent 9fa18f1 commit bdc18d0
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ public int GetRank(string playerLogin)
var rank = 1;
foreach (var checkpointData in this)
{
if (checkpointData.player.GetLogin() == playerLogin) return rank;
if (checkpointData.player.GetLogin() == playerLogin)
{
return rank;
}
rank++;
}

Expand Down

0 comments on commit bdc18d0

Please sign in to comment.