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:
parent
f1cfb63fb5
commit
8063429f5d
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user