X Tutup
Skip to content

Commit 6fde02d

Browse files
committed
use named output param
1 parent c87deab commit 6fde02d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/cmd/pr/create/create.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func NewCmdCreate(f *cmdutil.Factory, runF func(*CreateOptions) error) *cobra.Co
127127
return cmd
128128
}
129129

130-
func createRun(opts *CreateOptions) error {
130+
func createRun(opts *CreateOptions) (err error) {
131131
cs := opts.IO.ColorScheme()
132132

133133
httpClient, err := opts.HttpClient()
@@ -153,7 +153,6 @@ func createRun(opts *CreateOptions) error {
153153
} else {
154154
// TODO: if RepoNetwork is going to be requested anyway in `repoContext.HeadRepos()`,
155155
// consider piggybacking on that result instead of performing a separate lookup
156-
var err error
157156
baseRepo, err = api.GitHubRepo(client, br)
158157
if err != nil {
159158
return err

0 commit comments

Comments
 (0)
X Tutup