1
0
Fork 0
mirror of https://github.com/Luzifer/update-gotools.git synced 2024-10-18 07:04:20 +00:00

Fix: Unmarshal in local object

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-04-06 11:50:34 +02:00
parent 8fe7661792
commit c8745396ce
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -32,7 +32,7 @@ func (c *configFile) LoadFromPath(filepath string) error {
}
defer r.Close()
if err := yaml.NewDecoder(r).Decode(cfgFile); err != nil {
if err := yaml.NewDecoder(r).Decode(c); err != nil {
return err
}