Skip to content

Commit

Permalink
Fix error formatting based on best practices from Code Review Comments
Browse files Browse the repository at this point in the history
Signed-off-by: CodeLingo Bot <[email protected]>
  • Loading branch information
CodeLingoBot committed Feb 5, 2019
1 parent 4ea4861 commit 774bb8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion json_formatter.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func (f *JSONFormatter) Format(entry *Entry) ([]byte, error) {
encoder.SetIndent("", " ")
}
if err := encoder.Encode(data); err != nil {
return nil, fmt.Errorf("Failed to marshal fields to JSON, %v", err)
return nil, fmt.Errorf("failed to marshal fields to JSON, %v", err)
}

return b.Bytes(), nil
Expand Down

0 comments on commit 774bb8e

Please sign in to comment.