mirror of
https://github.com/Luzifer/update-gotools.git
synced 2024-12-22 12:51:20 +00:00
Fix: Unmarshal in local object
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
8fe7661792
commit
c8745396ce
1 changed files with 1 additions and 1 deletions
2
types.go
2
types.go
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue