From 66fcba95a07a60718442542b76303cc141ca15cf Mon Sep 17 00:00:00 2001 From: Will Norris Date: Mon, 18 May 2015 15:15:54 -0700 Subject: [PATCH] don't drop error from gif.EncodeAll --- third_party/gifresize/gifresize.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/third_party/gifresize/gifresize.go b/third_party/gifresize/gifresize.go index 8c78008..cc89d0b 100644 --- a/third_party/gifresize/gifresize.go +++ b/third_party/gifresize/gifresize.go @@ -53,8 +53,7 @@ func Process(w io.Writer, r io.Reader, transform TransformFunc) error { im.Image[index] = imageToPaletted(transform(img)) } - gif.EncodeAll(w, im) - return nil + return gif.EncodeAll(w, im) } func imageToPaletted(img image.Image) *image.Paletted {