You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for your report. Originally, errchkjson worked the way you are describing. But in #14 we discussed this issue and we found, that json.NewEncoder(...).Encode() has some additional error paths, not related to the json encoding it self, but to the operations on the io.Writer. Therefore it is not save to omit the errors in this case.
Code sample
json.NewEncoder(body).Encode(r)
should not report error. because last 2 lines essentially does the same thing.The text was updated successfully, but these errors were encountered: