Fix vet issue

This commit is contained in:
Jan Eitzinger 2022-09-07 13:41:33 +02:00
parent 8856f26fb0
commit 882dc011b9

View File

@ -57,15 +57,13 @@ func (fsa *FsArchive) Init(rawConfig json.RawMessage) error {
var config FsArchiveConfig var config FsArchiveConfig
if err := json.Unmarshal(rawConfig, &config); err != nil { if err := json.Unmarshal(rawConfig, &config); err != nil {
fmt.Errorf("fsBackend Init()- %w", err) return fmt.Errorf("fsBackend Init()- %w", err)
return err
} }
fsa.path = config.Path fsa.path = config.Path
entries, err := os.ReadDir(fsa.path) entries, err := os.ReadDir(fsa.path)
if err != nil { if err != nil {
fmt.Errorf("fsBackend Init()- Cannot read dir %s: %w", fsa.path, err) return fmt.Errorf("fsBackend Init()- Cannot read dir %s: %w", fsa.path, err)
return err
} }
for _, de := range entries { for _, de := range entries {