8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfc986e commit 19f4581Copy full SHA for 19f4581
index/index.go
@@ -70,11 +70,8 @@ func Init(indexString string, directory *paths.Path) *Resource {
70
IndexSignature: *directory.Join(signatureFile),
71
}
72
73
- if !ir.IndexFile.Exist() || time.Since(ir.LastRefresh) > 1*time.Hour {
74
- // Download the file again and save it
75
- if err := ir.DownloadAndVerify(); err != nil {
76
- log.Fatalf("cannot download index: %s", err)
77
- }
+ if err := ir.DownloadAndVerify(); err != nil {
+ log.Fatalf("cannot download index: %s", err)
78
79
80
return &ir
0 commit comments