Skip to content

Commit 93118c6

Browse files
authored
Merge pull request cli#52 from bchadwic/trunk
Update browse.go removed trailing newlines on errors
2 parents 203d41c + 876b61a commit 93118c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/cmd/browse/browse.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,12 @@ func NewCmdBrowse(f *cmdutil.Factory, runF func(*BrowseOptions) error) *cobra.Co
107107
func runBrowse(opts *BrowseOptions) error {
108108
baseRepo, err := opts.BaseRepo()
109109
if err != nil {
110-
return fmt.Errorf("unable to determine base repository: %w\n", err)
110+
return fmt.Errorf("unable to determine base repository: %w", err)
111111
}
112112

113113
httpClient, err := opts.HttpClient()
114114
if err != nil {
115-
return fmt.Errorf("unable to create an http client: %w\n", err)
115+
return fmt.Errorf("unable to create an http client: %w", err)
116116
}
117117
url := ghrepo.GenerateRepoURL(baseRepo, "")
118118

0 commit comments

Comments
 (0)