From f47f145b6c8b3cde733998955231d6b814818af3 Mon Sep 17 00:00:00 2001 From: Florian Sylvain Date: Mon, 17 Nov 2025 19:51:16 +0100 Subject: [PATCH] fix: unused param and missing return --- api/controllers/auth/auth.go | 1 + api/controllers/pages/integration.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/api/controllers/auth/auth.go b/api/controllers/auth/auth.go index 5247018..1d24f41 100644 --- a/api/controllers/auth/auth.go +++ b/api/controllers/auth/auth.go @@ -133,6 +133,7 @@ func login(w http.ResponseWriter, r *http.Request) { dbUser, err := GetUserFromCredentials(credentials) if err != nil { http.Error(w, LogsErrorMessage, http.StatusForbidden) + return } _ = SetJwtCookie(&w, dbUser.ID) diff --git a/api/controllers/pages/integration.go b/api/controllers/pages/integration.go index e450459..05a2101 100644 --- a/api/controllers/pages/integration.go +++ b/api/controllers/pages/integration.go @@ -7,7 +7,7 @@ import ( "os" ) -func GetPageIntegration(w http.ResponseWriter, r *http.Request) { +func GetPageIntegration(w http.ResponseWriter, _ *http.Request) { navbarTmpl, _ := api.Container.GetPageUseCase.GetPage("componentNavbar", nil) templ, _ := api.Container.GetPageUseCase.GetPage("integration", map[string]any{ "Navbar": template.HTML(navbarTmpl),