rm dead code and add nice code comment

This commit is contained in:
6543 2022-11-12 00:27:40 +01:00
parent 128a6bd2d9
commit 9df4a50e10
No known key found for this signature in database
GPG key ID: B8BE6D610E61C862

View file

@ -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 {