From 545127131c035a5741c105ef8984098fe1f2cd98 Mon Sep 17 00:00:00 2001 From: Jannik Hollenbach Date: Wed, 11 Dec 2024 16:53:29 +0100 Subject: [PATCH] Fix typo in function param --- balancer/routes/teamStatus.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/balancer/routes/teamStatus.go b/balancer/routes/teamStatus.go index 3091356d..96d159ad 100644 --- a/balancer/routes/teamStatus.go +++ b/balancer/routes/teamStatus.go @@ -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) @@ -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 {