diff options
author | Runxi Yu <me@runxiyu.org> | 2025-02-13 22:59:16 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-02-13 22:59:16 +0800 |
commit | 98111aec8ddd70ca061c2954f3dddcc8817c1d44 (patch) | |
tree | df73ab1ad11f670c4d68590492bba4d1fced87b5 /http_server.go | |
parent | http_{server,handle_login}.go: Fix missing error handling (diff) | |
download | forge-98111aec8ddd70ca061c2954f3dddcc8817c1d44.tar.gz forge-98111aec8ddd70ca061c2954f3dddcc8817c1d44.tar.zst forge-98111aec8ddd70ca061c2954f3dddcc8817c1d44.zip |
*.go: Reformat
Diffstat (limited to 'http_server.go')
-rw-r--r-- | http_server.go | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |