Skip to content

Commit

Permalink
Fix typo in function param
Browse files Browse the repository at this point in the history
  • Loading branch information
J12934 committed Dec 11, 2024
1 parent 4bd2b05 commit 5451271
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions balancer/routes/teamStatus.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type AdminTeamStatus struct {
Name string `json:"name"`
}

func handleTeamStatus(bundle *bundle.Bundle, scoringSerivce *scoring.ScoringService) http.Handler {
func handleTeamStatus(bundle *bundle.Bundle, scoringService *scoring.ScoringService) http.Handler {
return http.HandlerFunc(
func(responseWriter http.ResponseWriter, req *http.Request) {
team, err := teamcookie.GetTeamFromRequest(bundle, req)
Expand All @@ -45,7 +45,7 @@ func handleTeamStatus(bundle *bundle.Bundle, scoringSerivce *scoring.ScoringServ
return
}

currentScores := scoringSerivce.GetScores()
currentScores := scoringService.GetScores()
teamScore, ok := currentScores[team]
teamCount := len(currentScores)
if !ok {
Expand Down

0 comments on commit 5451271

Please sign in to comment.