diff options
author | Michael Muré <batolettre@gmail.com> | 2023-01-22 14:59:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-22 14:59:03 +0100 |
commit | 574716518009d341c8abd54285719e448ddbb844 (patch) | |
tree | 491df144c41dc1a8a71f0631b1eb808dd525fdc3 /commands/bug/bug_show.go | |
parent | 05be19d3bdfcafbfb4cf39d0dfc0ae480c5e062d (diff) | |
parent | 3f764397dbd49910e549d3ef3c0d26e3ca2f8b0f (diff) | |
download | git-bug-574716518009d341c8abd54285719e448ddbb844.tar.gz |
Merge pull request #1001 from MichaelMure/style/clean-up-linter-issues
style: clean up linter complaints
Diffstat (limited to 'commands/bug/bug_show.go')
-rw-r--r-- | commands/bug/bug_show.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/bug/bug_show.go b/commands/bug/bug_show.go index 9a03c9a3..ef20df2a 100644 --- a/commands/bug/bug_show.go +++ b/commands/bug/bug_show.go @@ -47,7 +47,7 @@ func newBugShowCommand(env *execenv.Env) *cobra.Command { } func runBugShow(env *execenv.Env, opts bugShowOptions, args []string) error { - b, args, err := ResolveSelected(env.Backend, args) + b, _, err := ResolveSelected(env.Backend, args) if err != nil { return err } @@ -91,7 +91,7 @@ func runBugShow(env *execenv.Env, opts bugShowOptions, args []string) error { case "title": env.Out.Printf("%s\n", snap.Title) default: - return fmt.Errorf("\nUnsupported field: %s\n", opts.fields) + return fmt.Errorf("unsupported field: %s", opts.fields) } return nil |