diff --git a/README.md b/README.md index 388ee2a..60d6c17 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/resize.go b/resize.go index 9c7005e..d6dce26 100644 --- a/resize.go +++ b/resize.go @@ -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) {