Permalink
Browse files

MIssed return on request failure

  • Loading branch information...
1 parent 8c354df commit b5423cfd21c350f5a0a28c9c4a5d3c44289f7f5f @ardan-bkennedy ardan-bkennedy committed Dec 20, 2013
@@ -49,6 +49,7 @@ func main() {
defer resp.Body.Close()
if err != nil {
log.Println(err)
+ return
}
// Check the status code
@@ -51,6 +51,7 @@ func main() {
defer resp.Body.Close()
if err != nil {
log.Println(err)
+ return
}
// Check the status code
@@ -55,6 +55,7 @@ func main() {
defer resp.Body.Close()
if err != nil {
log.Println(err)
+ return
}
// Check the status code
@@ -58,6 +58,7 @@ func main() {
defer resp.Body.Close()
if err != nil {
log.Println(err)
+ return
}
// Check the status code
@@ -52,6 +52,7 @@ func main() {
defer resp.Body.Close()
if err != nil {
log.Println(err)
+ return
}
// Check the status code
@@ -56,6 +56,7 @@ func main() {
defer resp.Body.Close()
if err != nil {
log.Println(err)
+ return
}
// Capture the response

0 comments on commit b5423cf

Please sign in to comment.