Make go vet happy.

This commit is contained in:
Sascha L. Teichmann 2016-05-08 18:03:13 +02:00
parent fad16a58e8
commit b59f849d73

View File

@ -45,7 +45,7 @@ func nextSuffix() string {
func EncodeToMem(img image.Image) ([]byte, error) {
var buf bytes.Buffer
enc := png.Encoder{png.BestCompression}
enc := png.Encoder{CompressionLevel: png.BestCompression}
if err := enc.Encode(&buf, img); err != nil {
return nil, err
}