From 31be948f68b746257974e12d3af7624fa806e35f Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 5 Apr 2025 13:42:14 +0800 Subject: HTTP: Avoid an sprintf --- http_handle_repo_raw.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'http_handle_repo_raw.go') 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)) -- cgit v1.2.3