From c38cd082d222fee87d49f41548d30a4c83e77249 Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Fri, 11 Apr 2025 18:03:40 +0200 Subject: [PATCH] fix: ignore bar update error --- cmd/gogitlabber/git.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/gogitlabber/git.go b/cmd/gogitlabber/git.go index e9cb50a..2b8ac41 100644 --- a/cmd/gogitlabber/git.go +++ b/cmd/gogitlabber/git.go @@ -79,7 +79,7 @@ func checkoutRepositories(repositories []Repository, concurrency int) { mu.Lock() clonedCount++ if !debug { - bar.Add(1) + _ = bar.Add(1) } mu.Unlock() @@ -88,7 +88,7 @@ func checkoutRepositories(repositories []Repository, concurrency int) { logger.Print("Decided to pull repository: "+repoName, nil) pullRepository(repoName, repoDestination) if !debug { - bar.Add(1) + _ = bar.Add(1) } default: @@ -99,7 +99,7 @@ func checkoutRepositories(repositories []Repository, concurrency int) { mu.Lock() errorCount++ if !debug { - bar.Add(1) + _ = bar.Add(1) } mu.Unlock() }