mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2024-11-16 15:20:20 +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) {
|
func EncodeToMem(img image.Image) ([]byte, error) {
|
||||||
var buf bytes.Buffer
|
var buf bytes.Buffer
|
||||||
enc := png.Encoder{png.BestCompression}
|
enc := png.Encoder{CompressionLevel: png.BestCompression}
|
||||||
if err := enc.Encode(&buf, img); err != nil {
|
if err := enc.Encode(&buf, img); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user