From d4ebbaa875524e53c763fd9864190c3ce06a6aed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Aparicio?= Date: Fri, 16 Oct 2015 22:29:57 +0100 Subject: [PATCH 1/2] fix(docs): typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9307137..5a0f6da 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) From 6ee9b69627d2f6525487924e328141b45baa17fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Aparicio?= Date: Tue, 3 Nov 2015 07:49:05 +0000 Subject: [PATCH 2/2] refactor(resize): simplify code --- resize.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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) {