adding missing error handling for GET repo

Signed-off-by: Florian Wagner <h2floh@github.com>
This commit is contained in:
Florian Wagner
2022-11-04 06:15:14 +00:00
parent d7e1ea845e
commit e30fad8050

View File

@@ -230,6 +230,8 @@ func getOrCreateGitHubRepo(ctx context.Context, client *github.Client, repoName,
} else {
return nil, errors.Wrapf(err, "error creating repository %s/%s", ownerName, repoName)
}
} else if err != nil {
return nil, errors.Wrapf(err, "error creating repository %s/%s", ownerName, repoName)
}
if ghRepo == nil {