Refactoring SendAsciiPic, using explicit var
This commit is contained in:
parent
1fc88a4cca
commit
93c395510d
1 changed files with 2 additions and 2 deletions
|
@ -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++ {
|
||||||
|
|
Loading…
Reference in a new issue