From 4cf0fec12f3596cc17d313db3be4d46b91ef9862 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Thu, 27 Mar 2025 23:32:00 +0800 Subject: Lint --- http_handle_repo_tree.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'http_handle_repo_tree.go') diff --git a/http_handle_repo_tree.go b/http_handle_repo_tree.go index 38b533d..7d95c02 100644 --- a/http_handle_repo_tree.go +++ b/http_handle_repo_tree.go @@ -5,7 +5,6 @@ package main import ( "bytes" - "fmt" "html/template" "net/http" "path" @@ -42,8 +41,6 @@ func httpHandleRepoTree(writer http.ResponseWriter, request *http.Request, param cacheHandle := append(refHashSlice, []byte(pathSpec)...) - fmt.Printf("%#v\n", string(cacheHandle)) - if value, found := treeReadmeCache.Get(cacheHandle); found { params["files"] = value.DisplayTree params["readme_filename"] = value.ReadmeFilename @@ -59,8 +56,6 @@ func httpHandleRepoTree(writer http.ResponseWriter, request *http.Request, param } start := time.Now() - fmt.Println("miss") - var target *object.Tree if pathSpec == "" { if commitObject, err = repo.CommitObject(refHash); err != nil { @@ -159,7 +154,7 @@ func httpHandleRepoTree(writer http.ResponseWriter, request *http.Request, param ReadmeFilename: readmeFilename, ReadmeRendered: readmeRendered, } - fmt.Println(treeReadmeCache.Set(cacheHandle, entry, cost)) + treeReadmeCache.Set(cacheHandle, entry, cost) params["readme_filename"], params["readme"] = readmeFilename, readmeRendered params["files"] = displayTree -- cgit v1.2.3