From a4c809652f83d32184137f8f59086050e9cbf56c Mon Sep 17 00:00:00 2001 From: Fredrik Skogman Date: Fri, 22 Dec 2023 14:26:19 +0100 Subject: [PATCH] Style fixes Signed-off-by: Fredrik Skogman --- pkg/tuf/client.go | 1 + pkg/tuf/config.go | 1 + 2 files changed, 2 insertions(+) diff --git a/pkg/tuf/client.go b/pkg/tuf/client.go index df31548e..ac9f946b 100644 --- a/pkg/tuf/client.go +++ b/pkg/tuf/client.go @@ -162,6 +162,7 @@ func (c *Client) Refresh() error { cfg.LastTimestamp = time.Now() // ignore error writing update config file _ = cfg.Persist(c.configPath()) + return nil } diff --git a/pkg/tuf/config.go b/pkg/tuf/config.go index d814b0eb..92a87063 100644 --- a/pkg/tuf/config.go +++ b/pkg/tuf/config.go @@ -49,5 +49,6 @@ func (c *Config) Persist(p string) error { if err != nil { return fmt.Errorf("failed to write config: %w", err) } + return nil }