From e97170d4989f11d7c6023ea4b9814885a75dd318 Mon Sep 17 00:00:00 2001
From: Hugo <hnouts@grandlyon.com>
Date: Wed, 22 Apr 2020 17:42:56 +0200
Subject: [PATCH] update main.go

---
 main.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/main.go b/main.go
index f3ebea5..22f23e7 100644
--- a/main.go
+++ b/main.go
@@ -25,10 +25,10 @@ func main() {
 		state := query.Get("state")
 		response, err := http.Get("https://gw.hml.api.enedis.fr/group/espace-particuliers/consentement-linky/oauth2/authorize?client_id="+ clientId +"&duration=P6M&redirect_uri=https://oauth-proxy.wf.alpha.grandlyon.com/redirect&response_type=code&state="+ state +"-"+ cozyOrigin)
 		if err != nil {
-			fmt.Printf("%s", err)
+			fmt.Println(err)
 		} else {
 			defer response.Body.Close()
-			contents, err := ioutil.ReadAll(response.Body)
+			contents := ioutil.ReadAll(response.Body)
 			fmt.Printf("%s\n", string(contents))
 		}
 	
-- 
GitLab