refactor: go modernisation fixes
This commit is contained in:
1 parent
8e4923991d
commit
b2da85ead1
14 files changed
+41
-53
No files matched your search
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user