more refact

This commit is contained in:
2026-01-19 21:55:50 +01:00
parent 64750ef1c2
commit ee6dfca55f
3 changed files with 44 additions and 30 deletions

View File

@@ -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
}