read without config fixed

This commit is contained in:
alessio 2017-04-15 20:11:05 +02:00
parent 700c55f115
commit 47118c9ff5
2 changed files with 4 additions and 4 deletions

View File

@ -43,7 +43,7 @@ func main() {
before := func(*cli.Context) error {
gopath := os.Getenv("GOPATH")
if gopath == "" {
return errors.New("$GOPATH isn't set up properly")
return errors.New("$GOPATH isn't set properly")
}
r = realize{
@ -563,7 +563,7 @@ func main() {
},
Quest: interact.Quest{
Options: style.Yellow.Regular("[y/n]"),
Msg: "Customize the watched paths",
Msg: "Customize watched paths",
Resolve: func(d interact.Context) bool {
val, _ := d.Ans().Bool()
if val {
@ -608,7 +608,7 @@ func main() {
},
Quest: interact.Quest{
Options: style.Yellow.Regular("[y/n]"),
Msg: "Customize the ignored paths",
Msg: "Customize ignored paths",
Resolve: func(d interact.Context) bool {
val, _ := d.Ans().Bool()
if val {

View File

@ -54,7 +54,7 @@ func (s *Settings) Read(out interface{}) error {
err = yaml.Unmarshal(content, out)
return err
}
return err
return nil
}
// Record create and unmarshal the yaml config file