Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jrcamp committed Dec 21, 2020
1 parent 01939b6 commit ddc313d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions receiver/fluentforwardreceiver/conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ func parseRecordToLogRecord(dc *msgp.Reader, lr pdata.LogRecord) error {
if err != nil {
// The protocol doesn't specify this but apparently some map keys
// can be binary type instead of string
keyBytes, err := dc.ReadBytes(nil)
if err != nil {
return msgp.WrapError(err, "Record")
keyBytes, keyBytesErr := dc.ReadBytes(nil)
if keyBytesErr != nil {
return msgp.WrapError(keyBytesErr, "Record")
}
key = string(keyBytes)
}
Expand Down

0 comments on commit ddc313d

Please sign in to comment.