Skip to content

Commit

Permalink
Resolves some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Caul58 committed Apr 4, 2024
1 parent 6b7dcd2 commit c8f6e96
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func hasAthletePassed(with reactions: [AthleteReactions], court: String) -> Bool
let courtArray = Array(court)

var resultRace = ""
for var index in 0 ..< max {
for index in 0 ..< max {
if index >= min {
resultRace.append("?")
} else {
Expand All @@ -41,8 +41,6 @@ func hasAthletePassed(with reactions: [AthleteReactions], court: String) -> Bool
courtArray[index] == "_" ? resultRace.append(courtArray[index]) : resultRace.append("/")
case .jump:
courtArray[index] == "|" ? resultRace.append(courtArray[index]) : resultRace.append("x")
default:
resultRace.append(courtArray[index])
}
}
}
Expand Down

0 comments on commit c8f6e96

Please sign in to comment.