From ac69db2a5b624b16571701073f901e881f60a8d5 Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Thu, 3 Apr 2025 11:21:00 +0200 Subject: [PATCH] fix(ci): more linter fixes --- cmd/gogitlabber/git.go | 2 +- cmd/gogitlabber/gitlab.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/gogitlabber/git.go b/cmd/gogitlabber/git.go index d6bb8b4..1c3c709 100644 --- a/cmd/gogitlabber/git.go +++ b/cmd/gogitlabber/git.go @@ -127,7 +127,7 @@ func pullRepository(repoName string, repoDestination string) { remoteCmd := exec.Command("git", "-C", repoDestination, "remote", "show") remoteOutput, err := remoteCmd.CombinedOutput() 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) diff --git a/cmd/gogitlabber/gitlab.go b/cmd/gogitlabber/gitlab.go index 27bf6ae..e7bfd74 100644 --- a/cmd/gogitlabber/gitlab.go +++ b/cmd/gogitlabber/gitlab.go @@ -57,11 +57,11 @@ func fetchRepositoriesGitlab() ([]Repository, error) { logger.Print("HTTP: Decoding JSON response", nil) var repositories []Repository 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 { - return repositories, fmt.Errorf("ERROR: no repositories found\n") + return repositories, fmt.Errorf("ERROR: no repositories found") } repoCount := len(repositories)