Skip to content

Commit 880c95d

Browse files
tonytrgCopilot
andauthored
Update pkg/github/tools.go
Co-authored-by: Copilot <[email protected]>
1 parent 323d7bd commit 880c95d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/github/tools.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ func CleanToolsets(enabledToolsets []string) ([]string, []string) {
502502
}
503503

504504
func RemoveToolset(tools []string, toRemove string) []string {
505-
result := []string{}
505+
result := make([]string, 0, len(tools))
506506
for _, tool := range tools {
507507
if tool != toRemove {
508508
result = append(result, tool)

0 commit comments

Comments
 (0)