Skip to content

Commit

Permalink
Merge pull request prometheus#302 from prometheus/superq/mdstat_err
Browse files Browse the repository at this point in the history
Fix MDStat() error return
  • Loading branch information
pgier authored May 27, 2020
2 parents 81c5891 + 6103d0c commit 2fd30c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mdstat.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ type MDStat struct {
func (fs FS) MDStat() ([]MDStat, error) {
data, err := ioutil.ReadFile(fs.proc.Path("mdstat"))
if err != nil {
return nil, fmt.Errorf("error parsing mdstat %s: %s", fs.proc.Path("mdstat"), err)
return nil, err
}
mdstat, err := parseMDStat(data)
if err != nil {
Expand Down

0 comments on commit 2fd30c4

Please sign in to comment.