Wrap an error and remove a nolint

This commit is contained in:
Katrina Verey
2022-08-16 18:24:20 -04:00
parent 79a9154cf8
commit 1948af8190

View File

@@ -126,8 +126,8 @@ func (fsOnDisk) ReadDir(name string) ([]string, error) {
// ReadFile delegates to os.ReadFile.
func (fsOnDisk) ReadFile(name string) ([]byte, error) {
//nolint:wrapcheck
return os.ReadFile(name)
content, err := os.ReadFile(name)
return content, errors.Wrap(err)
}
// WriteFile delegates to os.WriteFile with read/write permissions.