From 11711e23ff573798f54b1d04b9b60dc13db24f56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcell=20F=C3=9CL=C3=96P?= Date: Mon, 20 Feb 2023 15:59:12 +0000 Subject: [PATCH] fix: simplify bool comparison --- http/static.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/static.go b/http/static.go index aa158c4f..db11161f 100644 --- a/http/static.go +++ b/http/static.go @@ -84,7 +84,7 @@ func handleWithStaticData(w http.ResponseWriter, r *http.Request, d *data, fSys cookie, _ := r.Cookie("auth") public := strings.HasPrefix(r.URL.Path, "/share/") && r.Method == "GET" - if cookie == nil && public == false { + if cookie == nil && !public { auther.OIDC.InitAuthFlow(w, r) return 0, nil }