From 14773b16ca4a16cbf84416894e254e41a01764b1 Mon Sep 17 00:00:00 2001 From: Steve Moyer Date: Thu, 19 Jan 2023 20:29:33 -0500 Subject: style: resolve PR comments --- commands/bug/bug_label_new.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'commands/bug/bug_label_new.go') diff --git a/commands/bug/bug_label_new.go b/commands/bug/bug_label_new.go index 1e1f2d4f..c8c3b811 100644 --- a/commands/bug/bug_label_new.go +++ b/commands/bug/bug_label_new.go @@ -22,13 +22,11 @@ func newBugLabelNewCommand(env *execenv.Env) *cobra.Command { } func runBugLabelNew(env *execenv.Env, args []string) error { - b, args, err := ResolveSelected(env.Backend, args) + b, added, err := ResolveSelected(env.Backend, args) if err != nil { return err } - added := args - changes, _, err := b.ChangeLabels(text.CleanupOneLineArray(added), nil) for _, change := range changes { -- cgit From 3f764397dbd49910e549d3ef3c0d26e3ca2f8b0f Mon Sep 17 00:00:00 2001 From: Steve Moyer Date: Fri, 20 Jan 2023 09:02:05 -0500 Subject: docs(commands): try to make cleaned argument use more obvious --- commands/bug/bug_label_new.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'commands/bug/bug_label_new.go') diff --git a/commands/bug/bug_label_new.go b/commands/bug/bug_label_new.go index c8c3b811..9fff851c 100644 --- a/commands/bug/bug_label_new.go +++ b/commands/bug/bug_label_new.go @@ -22,11 +22,13 @@ func newBugLabelNewCommand(env *execenv.Env) *cobra.Command { } func runBugLabelNew(env *execenv.Env, args []string) error { - b, added, err := ResolveSelected(env.Backend, args) + b, cleanArgs, err := ResolveSelected(env.Backend, args) if err != nil { return err } + added := cleanArgs + changes, _, err := b.ChangeLabels(text.CleanupOneLineArray(added), nil) for _, change := range changes { -- cgit