Skip to content

Commit 98d3b7c

Browse files
author
nate smith
committed
don't check Fprintf error
we don't ever check the return of Fprintf anywhere else in the codebase so doing it here suggests that it's a special case. if it's something we should be doing we can circle back and do it more consistently.
1 parent 49ff0c6 commit 98d3b7c

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
@@ -154,8 +154,8 @@ func runBrowse(opts *BrowseOptions) error {
154154
}
155155

156156
if opts.NoBrowserFlag {
157-
_, err := fmt.Fprintf(opts.IO.Out, "%s\n", url)
158-
return err
157+
fmt.Fprintf(opts.IO.Out, "%s\n", url)
158+
return nil
159159
} else {
160160
if opts.IO.IsStdoutTTY() {
161161
fmt.Fprintf(opts.IO.Out, "now opening %s in browser\n", url)

0 commit comments

Comments
 (0)