Update api/queries_branch_issue_reference.go
Co-authored-by: Andy Feller <andyfeller@github.com>
This commit is contained in:
parent
e269d43c5a
commit
04b4122e61
1 changed files with 1 additions and 2 deletions
|
|
@ -140,9 +140,8 @@ func FindRepoBranchID(client *Client, repo ghrepo.Interface, ref string) (string
|
|||
if branchID == "" {
|
||||
if ref != "" {
|
||||
return "", "", fmt.Errorf("could not find branch %q in %s", ref, ghrepo.FullName(repo))
|
||||
} else {
|
||||
branchID = query.Repository.DefaultBranchRef.Target.Oid
|
||||
}
|
||||
branchID = query.Repository.DefaultBranchRef.Target.Oid
|
||||
}
|
||||
|
||||
return query.Repository.Id, branchID, nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue