chore: errorlint cleanup

This commit is contained in:
sam committed 2026-08-31 22:58:37 +10:00
1 parent 1adb018d3f
commit ae33e366b2
1 file changed
+2 -2
+2 -2
View File
@@ -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)