Skip to content

Commit

Permalink
Fix lint complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
hlindberg committed Sep 8, 2020
1 parent a1f58fe commit 2c17e85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions provider/yamldata.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ func YamlData(ctx hiera.ProviderContext) dgo.Map {
if os.IsNotExist(err) {
return vf.Map()
}
panic(fmt.Errorf("Could not read %s: %s", path, err.Error()))
panic(fmt.Errorf("could not read %s: %s", path, err.Error()))
}
v, err := yaml.Unmarshal(bs)
if err != nil {
panic(fmt.Errorf("Could not unmarshal %s: %s", path, err.Error()))
panic(fmt.Errorf("could not unmarshal %s: %s", path, err.Error()))
}
if data, ok := v.(dgo.Map); ok {
return data
Expand Down

0 comments on commit 2c17e85

Please sign in to comment.