From 4a6b8653b63e0034823fa259d5cae5787100f510 Mon Sep 17 00:00:00 2001 From: Will Norris Date: Fri, 22 Mar 2019 08:05:59 +0000 Subject: [PATCH] fix minor go fmt and go vet issues --- imageproxy.go | 2 +- transform.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/imageproxy.go b/imageproxy.go index 292285d..4a35925 100644 --- a/imageproxy.go +++ b/imageproxy.go @@ -202,7 +202,7 @@ func (p *Proxy) serveImage(w http.ResponseWriter, r *http.Request) { // keys will be copied. func copyHeader(dst, src http.Header, keys ...string) { if len(keys) == 0 { - for k, _ := range src { + for k := range src { keys = append(keys, k) } } diff --git a/transform.go b/transform.go index 3428eba..402cbe9 100644 --- a/transform.go +++ b/transform.go @@ -105,7 +105,7 @@ func Transform(img []byte, opt Options) ([]byte, error) { } case "tiff": m = transformImage(m, opt) - err = tiff.Encode(buf, m, &tiff.Options{tiff.Deflate, true}) + err = tiff.Encode(buf, m, &tiff.Options{Compression: tiff.Deflate, Predictor: true}) if err != nil { return nil, err }