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

Fix smaller issues found by various linters

This commit is contained in:
Grzegorz Dlugoszewski
2025-08-24 17:51:14 +02:00
parent b39f5e63fd
commit 2de126166f
5 changed files with 9 additions and 6 deletions

View File

@@ -156,6 +156,7 @@ func (r *Repo) Upstream(branch string) (string, error) {
out, err := run.Git("rev-parse", "--abbrev-ref", "--symbolic-full-name", fmt.Sprintf("%s@{upstream}", branch)).OnRepo(r.path).AndCaptureLine()
if err != nil {
// TODO: no upstream will also throw an error.
// lint:ignore nilerr fix when working on TODO
return "", nil
}