6
0
mirror of https://github.com/grdl/git-get.git synced 2026-02-05 00:24:40 +00:00

Fix issues found by varnamelen linter

This commit is contained in:
Grzegorz Dlugoszewski
2025-08-24 15:44:22 +02:00
parent 288a642483
commit f60cfd1e40
7 changed files with 62 additions and 57 deletions

View File

@@ -170,14 +170,14 @@ func (r *Repo) AheadBehind(branch string, upstream string) (int, int, error) {
}
// rev-list --left-right --count output is separated by a tab
lr := strings.Split(out, "\t")
count := strings.Split(out, "\t")
ahead, err := strconv.Atoi(lr[0])
ahead, err := strconv.Atoi(count[0])
if err != nil {
return 0, 0, err
}
behind, err := strconv.Atoi(lr[1])
behind, err := strconv.Atoi(count[1])
if err != nil {
return 0, 0, err
}