diff --git a/resize.go b/resize.go index 6be8cad..07fdaa2 100644 --- a/resize.go +++ b/resize.go @@ -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) } diff --git a/resize_legacy.go b/resize_legacy.go index 6583ec5..86d8acd 100644 --- a/resize_legacy.go +++ b/resize_legacy.go @@ -6,5 +6,5 @@ package bimg // with the passed options. // Used as proxy to resizer() only in Go <= 1.6 versions func Resize(buf []byte, o Options) ([]byte, error) { - return resizer(buf, o) + return resizer(buf, o) } diff --git a/type_test.go b/type_test.go index 6dfe97e..5bbb23d 100644 --- a/type_test.go +++ b/type_test.go @@ -29,8 +29,8 @@ func TestDeterminateImageType(t *testing.T) { if VipsIsTypeSupported(file.expected) { if DetermineImageType(buf) != file.expected { t.Fatalf("Image type is not valid: %s != %s", file.name, ImageTypes[file.expected]) - } - } + } + } } }