diff --git a/pkg/cmd/pr/edit/edit.go b/pkg/cmd/pr/edit/edit.go index 0ced8b58c..37ece7cfd 100644 --- a/pkg/cmd/pr/edit/edit.go +++ b/pkg/cmd/pr/edit/edit.go @@ -354,8 +354,8 @@ func assigneeSearchFunc(apiClient *api.Client, repo ghrepo.Interface, editable * } } - var logins []string - var displayNames []string + logins := make([]string, 0, len(actors)) + displayNames := make([]string, 0, len(actors)) for _, a := range actors { if a.Login() != "" {