From 9df4a50e10c66e687f072afe974792dc66778ef8 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Sat, 12 Nov 2022 00:27:40 +0100 Subject: [PATCH] rm dead code and add nice code comment --- server/gitea/client.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/gitea/client.go b/server/gitea/client.go index 2e5631f..4ca3b90 100644 --- a/server/gitea/client.go +++ b/server/gitea/client.go @@ -118,8 +118,7 @@ func (client *Client) ServeRawContent(targetOwner, targetRepo, ref, resource str } } - // if cachedValue, ok := fileResponseCache.Get(uri + "?timestamp=" + o.timestamp()); ok && !cachedValue.(gitea.FileResponse).IsEmpty() { - // cachedResponse = cachedValue.(gitea.FileResponse) + // not in cache, open reader via gitea api reader, resp, err := client.sdkClient.GetFileReader(targetOwner, targetRepo, ref, resource, client.supportLFS) if resp != nil { switch resp.StatusCode {