From 98111aec8ddd70ca061c2954f3dddcc8817c1d44 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Thu, 13 Feb 2025 22:59:16 +0800 Subject: *.go: Reformat --- http_server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'http_server.go') diff --git a/http_server.go b/http_server.go index 0787ea9..3804df7 100644 --- a/http_server.go +++ b/http_server.go @@ -7,8 +7,8 @@ import ( "strconv" "strings" - "go.lindenii.runxiyu.org/lindenii-common/clog" "github.com/jackc/pgx/v5" + "go.lindenii.runxiyu.org/lindenii-common/clog" ) type http_router_t struct{} @@ -49,7 +49,7 @@ func (router *http_router_t) ServeHTTP(w http.ResponseWriter, r *http.Request) { params := make(map[string]any) params["global"] = global_data - var _user_id int // 0 for none + var _user_id int // 0 for none _user_id, params["username"], err = get_user_info_from_request(r) if errors.Is(err, http.ErrNoCookie) { } else if errors.Is(err, pgx.ErrNoRows) { -- cgit v1.2.3