Skip to content

Commit

Permalink
Merge branch 'github-default-client' of github.com:ganboonhong/migrat…
Browse files Browse the repository at this point in the history
…e into github-default-client
  • Loading branch information
ganboonhong committed Jan 31, 2021
2 parents 3239356 + d6bab6b commit 6ca622c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions source/github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6ca622c

Please sign in to comment.