From 5d50f28b0294fb0b049714cc2d8850d60a4e041e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Wed, 11 Feb 2026 16:30:40 +0100 Subject: [PATCH] all: Run modernize -fix ./... --- internal/lib/git.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/lib/git.go b/internal/lib/git.go index ba53c0e..4d729bd 100644 --- a/internal/lib/git.go +++ b/internal/lib/git.go @@ -31,7 +31,7 @@ func (r Repo) DefaultBranch() (string, error) { return "", err } // Output: "ref: refs/heads/main\tHEAD\n..." - for _, line := range strings.Split(out, "\n") { + for line := range strings.SplitSeq(out, "\n") { if b, ok := strings.CutPrefix(line, "ref: refs/heads/"); ok { if b, _, ok := strings.Cut(b, "\t"); ok { return b, nil