Refactoring SendAsciiPic, using explicit var

This commit is contained in:
Denis-Cosmin Nutiu 2017-11-24 22:17:38 +02:00
parent 1fc88a4cca
commit 93c395510d

View file

@ -39,8 +39,8 @@ func SendAsciiPic(c Client, path string) error {
h := (sz.Max.Y * w * 10) / (sz.Max.X * 16) h := (sz.Max.Y * w * 10) / (sz.Max.X * 16)
img = resize.Resize(uint(80), uint(h), img, resize.Lanczos3) img = resize.Resize(uint(80), uint(h), img, resize.Lanczos3)
table := []byte("MND8OZ$7I?+=~:,..") var table = []byte("MND8OZ$7I?+=~:,..")
buf := new(bytes.Buffer) var buf bytes.Buffer
for i := 0; i < h; i++ { for i := 0; i < h; i++ {
for j := 0; j < w; j++ { for j := 0; j < w; j++ {