We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 814377f commit 2cd8248Copy full SHA for 2cd8248
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