feat: comply with linter for the first time

This commit is contained in:
Simon Cornet 2025-03-04 06:37:43 +01:00
commit 77d17d97b5
2 changed files with 12 additions and 4 deletions

View file

@ -49,18 +49,19 @@ func checkoutRepositories(repositories []Repository) {
log.Printf("error: %v", err)
}
clonedCount = clonedCount + 1
bar.Add(1)
progressBarAdd(1)
// pull the latest
} else if strings.Contains(string(repoStatus), url) {
pullRepository(repoName, repoDestination)
bar.Add(1)
progressBarAdd(1)
// report error if not cloned or pulled repository
} else {
log.Printf("error: decided not to clone or pull repository %v\n", repoName)
log.Printf("error: this is why: %v\n", repoStatus)
errorCount = errorCount + 1
progressBarAdd(1)
}
}
}