Skip to content

Commit

Permalink
panic on buffer write error (#25)
Browse files Browse the repository at this point in the history
Signed-off-by: Curtis La Graff <[email protected]>
  • Loading branch information
clagraff authored Oct 20, 2018
1 parent 26f334b commit 4784196
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,9 @@ func makeGraph(tests []*endpointTest) {
bites := buff.Bytes()

writer := bufio.NewWriter(os.Stdout)
_, _ = writer.Write(bites)
if _, err = writer.Write(bites); err != nil {
panic(err)
}
}

func main() {
Expand Down

0 comments on commit 4784196

Please sign in to comment.