Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime Martinez <jmartinez@gitlab.com>2021-12-08 03:38:16 +0300
committerJaime Martinez <jmartinez@gitlab.com>2021-12-08 03:38:16 +0300
commitdd775b7a27aabc4c562b01a1480f147fb6d4a88b (patch)
tree77ce63a7c7169bf273ea2caddf95d1c6c7f3adc4 /internal/vfs
parent8ee29a24422e012c5ed9f6ada9d55f4e7c13673d (diff)
parent0ab62643e5b61daf82ecf5a2c1ed196796059514 (diff)
Merge branch 'remove-unused-ctx' into 'master'
refactor: enable unparam in .gitlabci.yml See merge request gitlab-org/gitlab-pages!631
Diffstat (limited to 'internal/vfs')
-rw-r--r--internal/vfs/zip/vfs.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/vfs/zip/vfs.go b/internal/vfs/zip/vfs.go
index d2db1606..c28ec017 100644
--- a/internal/vfs/zip/vfs.go
+++ b/internal/vfs/zip/vfs.go
@@ -200,7 +200,7 @@ func (zfs *zipVFS) Name() string {
// otherwise creates the archive entry in a cache and try to save it,
// if saving fails it's because the archive has already been cached
// (e.g. by another concurrent request)
-func (zfs *zipVFS) findOrCreateArchive(ctx context.Context, key string) (*zipArchive, error) {
+func (zfs *zipVFS) findOrCreateArchive(key string) (*zipArchive, error) {
// This needs to happen in lock to ensure that
// concurrent access will not remove it
// it is needed due to the bug https://github.com/patrickmn/go-cache/issues/48
@@ -259,7 +259,7 @@ func (zfs *zipVFS) findOrCreateArchive(ctx context.Context, key string) (*zipArc
// findOrOpenArchive gets archive from cache and tries to open it
func (zfs *zipVFS) findOrOpenArchive(ctx context.Context, key, path string) (*zipArchive, error) {
- zipArchive, err := zfs.findOrCreateArchive(ctx, key)
+ zipArchive, err := zfs.findOrCreateArchive(key)
if err != nil {
return nil, err
}