Fix linting

This commit is contained in:
Hoernschen 2024-02-25 20:52:42 +01:00
parent c1a2b9cfa3
commit 5a844330d9
No known key found for this signature in database
GPG Key ID: 37591FAF4E6D3462
2 changed files with 5 additions and 5 deletions

View File

@ -156,11 +156,11 @@ func (client *Client) ServeRawContent(targetOwner, targetRepo, ref, resource str
linkDest = path.Join(path.Dir(resource), linkDest) linkDest = path.Join(path.Dir(resource), linkDest)
// we store symlink not content to reduce duplicates in cache // we store symlink not content to reduce duplicates in cache
fileResponse := FileResponse { fileResponse := FileResponse{
Exists: true, Exists: true,
IsSymlink: true, IsSymlink: true,
Body: []byte(linkDest), Body: []byte(linkDest),
ETag: resp.Header.Get(ETagHeader), ETag: resp.Header.Get(ETagHeader),
} }
log.Trace().Msgf("file response has %d bytes", len(fileResponse.Body)) log.Trace().Msgf("file response has %d bytes", len(fileResponse.Body))
if err := client.responseCache.Set(cacheKey, fileResponse, fileCacheTimeout); err != nil { if err := client.responseCache.Set(cacheKey, fileResponse, fileCacheTimeout); err != nil {

View File

@ -47,7 +47,7 @@ type Options struct {
BranchTimestamp time.Time BranchTimestamp time.Time
// internal // internal
dontAppendTrailingSlash bool dontAppendTrailingSlash bool
redirectIfExists string redirectIfExists string
ServeRaw bool ServeRaw bool
} }