~chrisppy/go-barefeed

ea5b97ff3c47ac89769579352e3c5d8cffc78447 — Chris Palmer 9 months ago 21965d5
Fix missing err check
1 files changed, 3 insertions(+), 1 deletions(-)

M barefeed.go
M barefeed.go => barefeed.go +3 -1
@@ 38,7 38,9 @@ func FromFile(path string) (*Message, error) {
// FromReader will read barefeed from a Reader
func FromReader(reader io.Reader) (*Message, error) {
	buf := &bytes.Buffer{}
	buf.ReadFrom(reader)
	if _, err := buf.ReadFrom(reader); err != nil {
		return nil, err
	}
	return FromBytes(buf.Bytes())
}