diff options
author | Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> | 2019-06-19 14:05:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-19 14:05:03 +0100 |
commit | bc382bba4623a1c7ae16535541f2f4b23708999c (patch) | |
tree | 9149778f259732f866b5265f531a10158dd2eceb /mediaapi | |
parent | 7a2d5b17b98172b11ebcf2aa260745d0dccb2a1a (diff) |
Fix pipeline, emoji and syntax (#713)
Fixes #697
Switched to golangci-lint, fixes issues with buildkite and does some linting fixes to appease the new linters.
Diffstat (limited to 'mediaapi')
-rw-r--r-- | mediaapi/thumbnailer/thumbnailer_nfnt.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mediaapi/thumbnailer/thumbnailer_nfnt.go b/mediaapi/thumbnailer/thumbnailer_nfnt.go index 43bf8efb..5df6ce4b 100644 --- a/mediaapi/thumbnailer/thumbnailer_nfnt.go +++ b/mediaapi/thumbnailer/thumbnailer_nfnt.go @@ -20,9 +20,11 @@ import ( "context" "image" "image/draw" + // Imported for gif codec _ "image/gif" "image/jpeg" + // Imported for png codec _ "image/png" "os" @@ -258,9 +260,6 @@ func adjustSize(dst types.Path, img image.Image, w, h int, crop bool, logger *lo out = target } else { out = resize.Thumbnail(uint(w), uint(h), img, resize.Lanczos3) - if err != nil { - return -1, -1, err - } } if err = writeFile(out, string(dst)); err != nil { |