From 882dc011b94308bde07405887170e185fdb1fa33 Mon Sep 17 00:00:00 2001 From: Jan Eitzinger Date: Wed, 7 Sep 2022 13:41:33 +0200 Subject: [PATCH] Fix vet issue --- pkg/archive/fsBackend.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkg/archive/fsBackend.go b/pkg/archive/fsBackend.go index 9b70814..d14ae7d 100644 --- a/pkg/archive/fsBackend.go +++ b/pkg/archive/fsBackend.go @@ -57,15 +57,13 @@ func (fsa *FsArchive) Init(rawConfig json.RawMessage) error { var config FsArchiveConfig if err := json.Unmarshal(rawConfig, &config); err != nil { - fmt.Errorf("fsBackend Init()- %w", err) - return err + return fmt.Errorf("fsBackend Init()- %w", err) } fsa.path = config.Path entries, err := os.ReadDir(fsa.path) if err != nil { - fmt.Errorf("fsBackend Init()- Cannot read dir %s: %w", fsa.path, err) - return err + return fmt.Errorf("fsBackend Init()- Cannot read dir %s: %w", fsa.path, err) } for _, de := range entries {