mirror of
https://codeberg.org/andyscott/weather-cli.git
synced 2024-11-09 06:00:52 -05:00
Remove extraneous statement
This commit is contained in:
parent
2908823e6c
commit
dacfa2f285
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue