summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pkg/artifactcache/handler.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/artifactcache/handler.go b/pkg/artifactcache/handler.go
index 3178260..1f0a6f6 100644
--- a/pkg/artifactcache/handler.go
+++ b/pkg/artifactcache/handler.go
@@ -385,7 +385,7 @@ func (h *Handler) findCache(db *bolthold.Store, keys []string, version string) (
}
stop := fmt.Errorf("stop")
- for _, prefix := range keys[1:] {
+ for _, prefix := range keys {
found := false
prefixPattern := fmt.Sprintf("^%s", regexp.QuoteMeta(prefix))
re, err := regexp.Compile(prefixPattern)