fix(resize): code format issue

This commit is contained in:
Tomas Aparicio 2017-09-10 17:07:29 +02:00
parent d2a6c2d64d
commit d31288c3c8
3 changed files with 6 additions and 6 deletions

View file

@ -9,8 +9,8 @@ import (
// Resize is used to transform a given image as byte buffer
// with the passed options.
func Resize(buf []byte, o Options) ([]byte, error) {
// Required in order to prevent premature garbage collection. See:
// https://github.com/h2non/bimg/pull/162
// Required in order to prevent premature garbage collection. See:
// https://github.com/h2non/bimg/pull/162
defer runtime.KeepAlive(buf)
return resizer(buf, o)
return resizer(buf, o)
}