Missed an argument
This commit is contained in:
parent
1152e430c4
commit
a4d28e39a0
1 changed files with 1 additions and 1 deletions
|
@ -180,7 +180,7 @@ func (c *client) Repo(u *model.User, owner, name string) (*model.Repo, error) {
|
|||
if item.Name == "http" {
|
||||
uri, err := url.Parse(item.Href)
|
||||
if err != nil {
|
||||
return err
|
||||
return nil, err
|
||||
}
|
||||
uri.User = nil
|
||||
repo.Clone = uri.String()
|
||||
|
|
Loading…
Reference in a new issue