Remove extraneous statement

This commit is contained in:
Andrew Scott 2022-09-03 00:43:43 -04:00
parent 2908823e6c
commit dacfa2f285
Signed by: a
GPG key ID: 3EB62D0BBB8DB381

View file

@ -2,7 +2,6 @@ package main
import ( import (
"encoding/json" "encoding/json"
"fmt"
"io/ioutil" "io/ioutil"
"log" "log"
"net/http" "net/http"
@ -22,7 +21,7 @@ func getCurrent(app *Application) {
log.Printf("Error getting current forecast: %v", err) log.Printf("Error getting current forecast: %v", err)
} }
defer res.Body.Close() defer res.Body.Close()
fmt.Println(res.Body)
body, err := ioutil.ReadAll(res.Body) body, err := ioutil.ReadAll(res.Body)
if err != nil { if err != nil {
log.Printf("Error reading response from server: %v\n", err) log.Printf("Error reading response from server: %v\n", err)