Skip to content

Commit

Permalink
fix(settings): don't panic on empty settings file (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua-Anderson authored Jul 21, 2016
1 parent 8ab9508 commit 32177aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions settings/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ func Load() (*Settings, error) {

c, err := deis.New(sF.VerifySSL, sF.Controller, sF.Token)

// Set a custom user agent
c.UserAgent = UserAgent

if err != nil {
return nil, err
}

// Set a custom user agent
c.UserAgent = UserAgent

settings := Settings{}
settings.Username = sF.Username
settings.Client = c
Expand Down

0 comments on commit 32177aa

Please sign in to comment.