diff options
author | Oleksandr Redko <oleksandr.red+github@gmail.com> | 2024-03-02 17:19:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-02 16:19:05 +0100 |
commit | 3166afd835a00486c918f1d3149696855897c923 (patch) | |
tree | 9ba64d0f8f16688512cf83a77787f70b0f56b81c /fs.go | |
parent | chore(deps): bump golang.org/x/crypto from 0.19.0 to 0.20.0 (#1725) (diff) | |
download | fasthttp-3166afd835a00486c918f1d3149696855897c923.tar.gz fasthttp-3166afd835a00486c918f1d3149696855897c923.tar.bz2 fasthttp-3166afd835a00486c918f1d3149696855897c923.zip |
Enable few gocritic checks; fix up issues (#1728)
Diffstat (limited to 'fs.go')
-rw-r--r-- | fs.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1350,7 +1350,7 @@ const ( fsMaxCompressibleFileSize = 8 * 1024 * 1024 ) -func (h *fsHandler) compressAndOpenFSFile(filePath string, fileEncoding string) (*fsFile, error) { +func (h *fsHandler) compressAndOpenFSFile(filePath, fileEncoding string) (*fsFile, error) { f, err := h.filesystem.Open(filePath) if err != nil { return nil, err @@ -1532,7 +1532,7 @@ func (h *fsHandler) newCompressedFSFileCache(f fs.File, fileInfo fs.FileInfo, fi return ff, nil } -func (h *fsHandler) newCompressedFSFile(filePath string, fileEncoding string) (*fsFile, error) { +func (h *fsHandler) newCompressedFSFile(filePath, fileEncoding string) (*fsFile, error) { f, err := h.filesystem.Open(filePath) if err != nil { return nil, fmt.Errorf("cannot open compressed file %q: %w", filePath, err) |