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

gofmt, goimports

This commit is contained in:
nickg 2017-05-10 19:35:44 -07:00
parent 41ff818aa0
commit 27e4b02892
2 changed files with 8 additions and 8 deletions

View File

@ -122,8 +122,8 @@ func Load(file string) (config Project, err error) {
func LoadReader(fd io.Reader) (config Project, err error) {
data, err := ioutil.ReadAll(fd)
if err != nil {
return config, err
}
err = yaml.Unmarshal(data, &config)
return
return config, err
}
err = yaml.Unmarshal(data, &config)
return
}

View File

@ -1,10 +1,10 @@
package config
import (
"testing"
"strings"
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/assert"
)
func TestRepo(t *testing.T) {
@ -14,12 +14,12 @@ func TestRepo(t *testing.T) {
}
func TestLoadReader(t *testing.T) {
var conf =`
var conf = `
homepage: &homepage http://goreleaser.github.io
fpm:
homepage: *homepage
`
var assert = assert.New(t)
var assert = assert.New(t)
buf := strings.NewReader(conf)
prop, err := LoadReader(buf)