From 019ba0e520e662c0c92c9a8f8f9c4fbba9f98e99 Mon Sep 17 00:00:00 2001 From: jordi fita mas Date: Mon, 30 Jan 2023 16:40:08 +0100 Subject: [PATCH] Remove redundant semicolons from Go source --- pkg/login.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/login.go b/pkg/login.go index 5909e3c..2d74b6f 100644 --- a/pkg/login.go +++ b/pkg/login.go @@ -131,9 +131,9 @@ func Authenticated(next http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { user := getUser(r) if user.LoggedIn { - next.ServeHTTP(w, r); + next.ServeHTTP(w, r) } else { http.Redirect(w, r, "/login", http.StatusSeeOther) } - }); + }) }