replace whitespaces with tabs
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user