From dacfa2f285f08993ebfca3167b7eac473fd6daa7 Mon Sep 17 00:00:00 2001 From: Andrew Scott Date: Sat, 3 Sep 2022 00:43:43 -0400 Subject: [PATCH] Remove extraneous statement --- cmd/weather.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/weather.go b/cmd/weather.go index 1b77383..5f5d88d 100644 --- a/cmd/weather.go +++ b/cmd/weather.go @@ -2,7 +2,6 @@ package main import ( "encoding/json" - "fmt" "io/ioutil" "log" "net/http" @@ -22,7 +21,7 @@ func getCurrent(app *Application) { log.Printf("Error getting current forecast: %v", err) } defer res.Body.Close() - fmt.Println(res.Body) + body, err := ioutil.ReadAll(res.Body) if err != nil { log.Printf("Error reading response from server: %v\n", err)