1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-10 03:47:03 +02:00

style: even simple config load

This commit is contained in:
Carlos Alexandro Becker 2018-01-26 14:38:16 -02:00
parent f1cfb63fb5
commit 8063429f5d
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -232,9 +232,7 @@ func LoadReader(fd io.Reader) (config Project, err error) {
if err != nil {
return config, err
}
if err := yaml.UnmarshalStrict(data, &config); err != nil {
return config, err
}
err = yaml.UnmarshalStrict(data, &config)
log.WithField("config", config).Debug("loaded config file")
return config, nil
return config, err
}