Skip to content

Commit

Permalink
Update fsnotify/filewatcher.go
Browse files Browse the repository at this point in the history
Co-authored-by: Yugandhar Vardhineni <[email protected]>
  • Loading branch information
daniel-garcia and yvardhineni authored Feb 28, 2024
1 parent c33089a commit c08029a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fsnotify/filewatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ type pathWatch struct {
func readConfigFile(path string) (v []byte, err error) {
v, err = ioutil.ReadFile(path)
if err != nil {
return nil, errors.Wrap(err, fmt.Sprintf("could not read %v", path))
return nil, errors.Wrapf(err, "could not read %v", path)
}
v = []byte(strings.TrimSpace(string(v)))
return
Expand Down

0 comments on commit c08029a

Please sign in to comment.