Skip to content

Commit

Permalink
Don't ignore possible gzip error
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikh committed Aug 11, 2016
1 parent 7396209 commit c61621a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ func (g *GzippedText) Scan(src interface{}) error {
return errors.New("Incompatible type for GzippedText")
}
reader, err := gzip.NewReader(bytes.NewReader(source))
if err != nil {
return err
}
defer reader.Close()
b, err := ioutil.ReadAll(reader)
if err != nil {
Expand Down

0 comments on commit c61621a

Please sign in to comment.