more refact
This commit is contained in:
@@ -9,9 +9,9 @@ import (
|
||||
|
||||
type GiteaFetcher struct {
|
||||
BaseURL string
|
||||
Token string
|
||||
Repos []string
|
||||
Cache *Cache
|
||||
Token string
|
||||
Repos []string
|
||||
Cache *Cache
|
||||
}
|
||||
|
||||
func (f GiteaFetcher) Fetch() []string {
|
||||
@@ -35,7 +35,6 @@ func (f GiteaFetcher) Fetch() []string {
|
||||
HTMLURL string `json:"html_url"`
|
||||
}
|
||||
if err := getJSON(req, &r); err != nil {
|
||||
fmt.Printf("Error fetching Gitea repo %s: %v\n", repo, err)
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user