Fixes S3 fetcher return

If the file is not gzipped the `Fetcher`
should return the `http.Response.Body` and
not nil
orig^2
Felipe Siqueira Pinheiro 2020-04-06 12:11:12 -03:00
parent 538c935889
commit a916ad79aa
1 changed files with 1 additions and 1 deletions

View File

@ -122,5 +122,5 @@ func (s *S3) Fetch() (io.Reader, error) {
return gzip.NewReader(resp.Body)
}
//success!
return nil, nil
return resp.Body, nil
}