diff --git a/conversation/go/http/conversation/conversation.go b/conversation/go/http/conversation/conversation.go index fbf8860b2..a7420d9a7 100644 --- a/conversation/go/http/conversation/conversation.go +++ b/conversation/go/http/conversation/conversation.go @@ -60,8 +60,7 @@ func main() { // Unmarshal the response var data map[string][]map[string]string - err = json.Unmarshal(bodyBytes, &data) - if err != nil { + if err := json.Unmarshal(bodyBytes, &data); err != nil { log.Fatal(err) }