From 2c17e85934c9b437259b20f0ee3c7902476baa8d Mon Sep 17 00:00:00 2001 From: Henrik Lindberg <563066+hlindberg@users.noreply.github.com> Date: Tue, 8 Sep 2020 17:51:41 +0200 Subject: [PATCH] Fix lint complaints --- provider/yamldata.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/provider/yamldata.go b/provider/yamldata.go index 4e6d31e..e73bc47 100644 --- a/provider/yamldata.go +++ b/provider/yamldata.go @@ -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