mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 18:25:26 +00:00
Wrap an error and remove a nolint
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user