This commit is contained in:
@@ -25,14 +25,14 @@ func (i invoiceReq) GetRepos() (repos []invoice.Repo, err error) {
|
||||
parts := strings.Split(repo, "/")
|
||||
if len(parts) != 2 {
|
||||
err = fmt.Errorf("cannot read body: repo with index %d does not split into 2 parts", i)
|
||||
return
|
||||
return repos, err
|
||||
}
|
||||
repos = append(repos, invoice.Repo{
|
||||
Owner: parts[0],
|
||||
Repo: parts[1],
|
||||
})
|
||||
}
|
||||
return
|
||||
return repos, err
|
||||
}
|
||||
|
||||
type sendReq struct {
|
||||
|
||||
Reference in New Issue
Block a user