Skip to content

Commit

Permalink
Fix typo in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Hagai Barel committed Nov 14, 2018
1 parent 59f376a commit ab64f7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions emq_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,13 +196,13 @@ func (e *Exporter) fetch(target string) (map[string]interface{}, error) {
}

if err := json.Unmarshal(streamToByte(res.Body), &dat); err != nil {
return nil, fmt.Errorf("Failed to unmarshel json")
return nil, fmt.Errorf("Failed to unmarshal json")
}

return dat, nil
}

//Convert a straem into byte array
//Convert a stream into byte array
func streamToByte(stream io.Reader) []byte {
buf := new(bytes.Buffer)
buf.ReadFrom(stream)
Expand Down

0 comments on commit ab64f7d

Please sign in to comment.