merge(upstream)

This commit is contained in:
Tomas Aparicio 2015-11-03 07:50:13 +00:00
commit 82f17f66d5
2 changed files with 2 additions and 7 deletions

View file

@ -303,7 +303,7 @@ See [godoc reference](https://godoc.org/github.com/h2non/bimg) for detailed API
## Credits
People who recurrently contributed to improve `bimg` in some or other way.
People who recurrently contributed to improve `bimg` in some way.
- [John Cupitt](https://github.com/jcupitt)
- [Yoan Blanc](https://github.com/greut)

View file

@ -118,12 +118,7 @@ func Resize(buf []byte, o Options) ([]byte, error) {
}
// Finally get the resultant buffer
buf, err = vipsSave(image, saveOptions)
if err != nil {
return nil, err
}
return buf, nil
return vipsSave(image, saveOptions)
}
func applyDefaults(o *Options, imageType ImageType) {