Skip to content

Commit

Permalink
Update conversation.go
Browse files Browse the repository at this point in the history
Co-authored-by: Mike Nguyen <[email protected]>
Signed-off-by: Fernando Rocha <[email protected]>
  • Loading branch information
rochabr and mikeee authored Jan 21, 2025
1 parent 2f2c0b5 commit e2b6a48
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions conversation/go/http/conversation/conversation.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit e2b6a48

Please sign in to comment.