Skip to content

Commit

Permalink
fixed linting isssues in fs.go with gofmt -e -d -s
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael Habichler committed Apr 29, 2024
1 parent c24b069 commit 64c7057
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -1233,11 +1233,11 @@ func (h *fsHandler) openIndexFile(ctx *RequestCtx, dirPath string, mustCompress
if err == nil {
return ff, nil
}
if mustCompress && err == errNoCreatePermission {
if mustCompress && err == errNoCreatePermission {
ctx.Logger().Printf("insufficient permissions for saving compressed file for %q. Serving uncompressed file. "+
"Allow write access to the directory with this file in order to improve fasthttp performance", indexFilePath)
mustCompress = false
return h.openFSFile(indexFilePath, mustCompress, fileEncoding)
return h.openFSFile(indexFilePath, mustCompress, fileEncoding)
}
if !errors.Is(err, fs.ErrNotExist) {
return nil, fmt.Errorf("cannot open file %q: %w", indexFilePath, err)
Expand Down

0 comments on commit 64c7057

Please sign in to comment.