We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc5a79f commit 8dff965Copy full SHA for 8dff965
1 file changed
pkg/tuf/client.go
@@ -150,7 +150,10 @@ func (c *Client) Refresh() error {
150
if err != nil {
151
return fmt.Errorf("tuf refresh failed: %w", err)
152
}
153
-
+ // If cache is disabled, we don't need to persist the last timestamp
154
+ if c.cfg.DisableLocalCache {
155
+ return nil
156
+ }
157
// Update config with last update
158
cfg, err := LoadConfig(c.configPath())
159
0 commit comments