From de9603d0921d85bfe837bc1f825900397e28e3f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorben=20G=C3=BCnther?= Date: Wed, 13 Sep 2023 16:11:29 +0200 Subject: [PATCH] Remove unused redirect handler --- faceit.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/faceit.go b/faceit.go index 1629610..8ef05e3 100644 --- a/faceit.go +++ b/faceit.go @@ -179,11 +179,6 @@ func main() { } } -func redirect(w http.ResponseWriter, r *http.Request, s string) { - redirect := "/search?accounts=" + s - http.Redirect(w, r, redirect, http.StatusSeeOther) -} - func (fc *faceitChecker) checkStats(ctx context.Context, playerid string, data *faceitCSGO) error { url := "https://open.faceit.com/data/v4/players/" + playerid + "/stats/csgo" req, err := http.NewRequestWithContext(ctx, "GET", url, nil) -- 2.44.0