Only initiate Gitea client on use
This commit is contained in:
@@ -75,6 +75,7 @@ func GetOwnerRepo(fullName string) (string, string) {
|
||||
|
||||
func (r *GiteaRemote) GetNumProjects(opts *remote.RemoteQueryOpts) int {
|
||||
var projects int
|
||||
r.setClient()
|
||||
|
||||
_, resp, err := r.api.SearchRepos(gitea.SearchRepoOptions{ListOptions: gitea.ListOptions{PageSize: 1}})
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user