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

@ -2,6 +2,7 @@ package main
import (
"fmt"
"log"
"github.com/k0kubun/go-ansi"
"github.com/schollz/progressbar/v3"
@ -13,9 +14,9 @@ func progressBar(repositories []Repository) {
repoCount := len(repositories)
// make progressbar
barPrefix := fmt.Sprintf("Getting your one and only repository...")
barPrefix := "Getting your one and only repository..."
if repoCount > 1 {
barPrefix = fmt.Sprintf("Getting your repositories...")
barPrefix = "Getting your repositories..."
}
bar = progressbar.NewOptions(
@ -38,6 +39,12 @@ func progressBar(repositories []Repository) {
)
}
func progressBarAdd(amount int) {
if err := bar.Add(amount); err != nil {
log.Printf("Progress bar update error: %v", err)
}
}
func printSummary() {
fmt.Println("")