diff --git a/source/github/github.go b/source/github/github.go index 00f3b7e45..d66668c5d 100644 --- a/source/github/github.go +++ b/source/github/github.go @@ -50,10 +50,9 @@ func (g *Github) Open(url string) (source.Driver, error) { return nil, err } - if u.User == nil { - // use http.DefaultClient - client = nil - } else { + // client defaults to http.DefaultClient + client = nil + if u.User != nil { password, ok := u.User.Password() if !ok { return nil, ErrNoUserInfo