fix: ignore bar update error

This commit is contained in:
Simon Cornet 2025-04-11 18:03:40 +02:00
commit c38cd082d2

View file

@ -79,7 +79,7 @@ func checkoutRepositories(repositories []Repository, concurrency int) {
mu.Lock() mu.Lock()
clonedCount++ clonedCount++
if !debug { if !debug {
bar.Add(1) _ = bar.Add(1)
} }
mu.Unlock() mu.Unlock()
@ -88,7 +88,7 @@ func checkoutRepositories(repositories []Repository, concurrency int) {
logger.Print("Decided to pull repository: "+repoName, nil) logger.Print("Decided to pull repository: "+repoName, nil)
pullRepository(repoName, repoDestination) pullRepository(repoName, repoDestination)
if !debug { if !debug {
bar.Add(1) _ = bar.Add(1)
} }
default: default:
@ -99,7 +99,7 @@ func checkoutRepositories(repositories []Repository, concurrency int) {
mu.Lock() mu.Lock()
errorCount++ errorCount++
if !debug { if !debug {
bar.Add(1) _ = bar.Add(1)
} }
mu.Unlock() mu.Unlock()
} }