From ae33e366b21de00986275cfa370481aaa43a4ae0 Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Mon, 31 Aug 2026 22:58:37 +1000 Subject: [PATCH] chore: errorlint cleanup --- internal/infrastructure/cronstore/store.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/infrastructure/cronstore/store.go b/internal/infrastructure/cronstore/store.go index 313337356..ff08fbbb5 100644 --- a/internal/infrastructure/cronstore/store.go +++ b/internal/infrastructure/cronstore/store.go @@ -551,7 +551,7 @@ func (s *Store) hydrate() error { if errors.Is(err, fs.ErrNotExist) { return nil } - return fmt.Errorf("%w: read %s: %v", ErrCorruptFile, s.path, err) + return fmt.Errorf("%w: read %s: %w", ErrCorruptFile, s.path, err) } if len(bytes.TrimSpace(data)) == 0 { return nil @@ -564,7 +564,7 @@ func (s *Store) hydrate() error { // schemaVersion — see the comment on that constant. dec.DisallowUnknownFields() if err := dec.Decode(&env); err != nil { - return fmt.Errorf("%w: decode %s: %v", ErrCorruptFile, s.path, err) + return fmt.Errorf("%w: decode %s: %w", ErrCorruptFile, s.path, err) } if env.SchemaVersion == 0 { return fmt.Errorf("%w: missing schema_version in %s", ErrCorruptFile, s.path)