aboutsummaryrefslogtreecommitdiff
path: root/http_handle_repo_raw.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-04-05 13:42:14 +0800
committerRunxi Yu <me@runxiyu.org>2025-04-05 13:42:14 +0800
commit31be948f68b746257974e12d3af7624fa806e35f (patch)
tree504fc395a895b87dbf82a897655bc17e8a8bda64 /http_handle_repo_raw.go
parentHTML: nosec G203 lint (diff)
downloadforge-31be948f68b746257974e12d3af7624fa806e35f.tar.gz
forge-31be948f68b746257974e12d3af7624fa806e35f.tar.zst
forge-31be948f68b746257974e12d3af7624fa806e35f.zip
HTTP: Avoid an sprintf
Diffstat (limited to 'http_handle_repo_raw.go')
-rw-r--r--http_handle_repo_raw.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/http_handle_repo_raw.go b/http_handle_repo_raw.go
index 5928f8c..e6e8c9a 100644
--- a/http_handle_repo_raw.go
+++ b/http_handle_repo_raw.go
@@ -130,7 +130,7 @@ func httpHandleRepoRaw(writer http.ResponseWriter, request *http.Request, params
}
case 3:
- errorPage500(writer, params, fmt.Sprintf("path not found: %s", pathSpec))
+ errorPage500(writer, params, "path not found: "+pathSpec)
default:
errorPage500(writer, params, fmt.Sprintf("unknown status code: %d", status))