Remove redundant semicolons from Go source

This commit is contained in:
jordi fita mas 2023-01-30 16:40:08 +01:00
parent de73743043
commit 019ba0e520
1 changed files with 2 additions and 2 deletions

View File

@ -131,9 +131,9 @@ func Authenticated(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
user := getUser(r) user := getUser(r)
if user.LoggedIn { if user.LoggedIn {
next.ServeHTTP(w, r); next.ServeHTTP(w, r)
} else { } else {
http.Redirect(w, r, "/login", http.StatusSeeOther) http.Redirect(w, r, "/login", http.StatusSeeOther)
} }
}); })
} }