fix(ci): more linter fixes

This commit is contained in:
Simon Cornet 2025-04-03 11:21:00 +02:00
commit ac69db2a5b
2 changed files with 3 additions and 3 deletions

View file

@ -127,7 +127,7 @@ func pullRepository(repoName string, repoDestination string) {
remoteCmd := exec.Command("git", "-C", repoDestination, "remote", "show") remoteCmd := exec.Command("git", "-C", repoDestination, "remote", "show")
remoteOutput, err := remoteCmd.CombinedOutput() remoteOutput, err := remoteCmd.CombinedOutput()
if err != nil { if err != nil {
return "", fmt.Errorf("finding remote: %v\n", err) return "", fmt.Errorf("finding remote: %v", err)
} }
logger.Print("Finding remote for repository: "+repoName+" at "+repoDestination, nil) logger.Print("Finding remote for repository: "+repoName+" at "+repoDestination, nil)

View file

@ -57,11 +57,11 @@ func fetchRepositoriesGitlab() ([]Repository, error) {
logger.Print("HTTP: Decoding JSON response", nil) logger.Print("HTTP: Decoding JSON response", nil)
var repositories []Repository var repositories []Repository
if err := json.NewDecoder(resp.Body).Decode(&repositories); err != nil { if err := json.NewDecoder(resp.Body).Decode(&repositories); err != nil {
return nil, fmt.Errorf("ERROR: decoding response: %v\n", err) return nil, fmt.Errorf("ERROR: decoding response: %v", err)
} }
if len(repositories) < 1 { if len(repositories) < 1 {
return repositories, fmt.Errorf("ERROR: no repositories found\n") return repositories, fmt.Errorf("ERROR: no repositories found")
} }
repoCount := len(repositories) repoCount := len(repositories)