Skip to content
This repository has been archived by the owner on Jan 24, 2019. It is now read-only.

Commit

Permalink
Merge pull request #426 from bluecmd/patch-4
Browse files Browse the repository at this point in the history
Remove check for >0 upstreams
  • Loading branch information
jehiah authored Aug 29, 2017
2 parents 79fff53 + 0b11713 commit 11bdcc9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions options.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,6 @@ func parseURL(to_parse string, urltype string, msgs []string) (*url.URL, []strin

func (o *Options) Validate() error {
msgs := make([]string, 0)
if len(o.Upstreams) < 1 {
msgs = append(msgs, "missing setting: upstream")
}
if o.CookieSecret == "" {
msgs = append(msgs, "missing setting: cookie-secret")
}
Expand Down
1 change: 0 additions & 1 deletion options_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ func TestNewOptions(t *testing.T) {
assert.NotEqual(t, nil, err)

expected := errorMsg([]string{
"missing setting: upstream",
"missing setting: cookie-secret",
"missing setting: client-id",
"missing setting: client-secret"})
Expand Down

0 comments on commit 11bdcc9

Please sign in to comment.