diff options
author | Runxi Yu <me@runxiyu.org> | 2025-03-22 13:44:03 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-03-22 13:44:03 +0800 |
commit | 99fd8a9cf96a51fcd9e50445cb035cc9ecd012de (patch) | |
tree | 077812874d2650216549048524886059391b5d45 /http_handle_gc.go | |
parent | Initial linting (diff) | |
download | forge-99fd8a9cf96a51fcd9e50445cb035cc9ecd012de.tar.gz forge-99fd8a9cf96a51fcd9e50445cb035cc9ecd012de.tar.zst forge-99fd8a9cf96a51fcd9e50445cb035cc9ecd012de.zip |
Variable name lengths
Diffstat (limited to '')
-rw-r--r-- | http_handle_gc.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/http_handle_gc.go b/http_handle_gc.go index 5f98d0e..73bd2a6 100644 --- a/http_handle_gc.go +++ b/http_handle_gc.go @@ -8,7 +8,7 @@ import ( "runtime" ) -func httpHandleGC(w http.ResponseWriter, r *http.Request, _ map[string]any) { +func httpHandleGC(writer http.ResponseWriter, request *http.Request, _ map[string]any) { runtime.GC() - http.Redirect(w, r, "/", http.StatusSeeOther) + http.Redirect(writer, request, "/", http.StatusSeeOther) } |