mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2024-12-23 16:50:18 +01:00
Make go vet happy.
This commit is contained in:
parent
fad16a58e8
commit
b59f849d73
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user