andygrunwald / go-gerrit

Go client/library for Gerrit Code Review
https://godoc.org/github.com/andygrunwald/go-gerrit
MIT License
96 stars 40 forks source link

Optimize Error-Handling-Code of read body #64

Open andygrunwald opened 6 years ago

andygrunwald commented 6 years ago

Check out the suggestion from @dmitshur at https://github.com/andygrunwald/go-gerrit/pull/62#pullrequestreview-153591080

This might make sense and leads to better readable code.