replace whitespaces with tabs

This commit is contained in:
m3philis
2025-04-03 15:23:34 +02:00
parent 4700488489
commit 693290bc03

View File

@@ -5,7 +5,6 @@ import (
"flag"
"fmt"
"io"
"io/ioutil"
"log"
"net/http"
"net/url"
@@ -127,7 +126,7 @@ func openConnection(url string) []picture {
}
defer result.Body.Close()
data, err := ioutil.ReadAll(result.Body)
data, err := io.ReadAll(result.Body)
if err != nil {
log.Fatal(err)
}
@@ -151,7 +150,7 @@ func parseMaps(f []picture, ratio float64) ([]string, int) {
picWidthF := 1.0
picHeightF := 1.0
if (pic.Width != 0 && pic.Height != 0) {
if pic.Width != 0 && pic.Height != 0 {
picWidthF = float64(pic.Width)
picHeightF = float64(pic.Height)
} else {