refactor: go modernisation fixes

This commit is contained in:
sam committed 2026-08-29 00:20:05 +10:00
1 parent 8e4923991d
commit b2da85ead1
14 files changed
+41 -53

No files matched your search

+1 -1
View File
@@ -398,7 +398,7 @@ func TestBranchNamingPrecedence(t *testing.T) {
t.Errorf("archieBranch(%d, %q, %q) = %q, want %q", tc.issue, tc.title, tc.labels, got, tc.want)
}
gotPrefix := branchPrefix(tc.title, tc.labels)
wantPrefix := strings.Split(tc.want, "/")[0]
wantPrefix, _, _ := strings.Cut(tc.want, "/")
if gotPrefix != wantPrefix {
t.Errorf("branchPrefix(%q, %q) = %q, want %q", tc.title, tc.labels, gotPrefix, wantPrefix)
}