diff --git a/src/HtmlUtils.js b/src/HtmlUtils.js
index fe97d7b84f..6db2b08fd1 100644
--- a/src/HtmlUtils.js
+++ b/src/HtmlUtils.js
@@ -146,19 +146,17 @@ class TextHighlighter extends BaseHighlighter {
* returns a React node
*/
_processSnippet(snippet, highlight) {
- var spanProps = {
- key: this._key++,
- };
+ var key = this._key++;
- if (highlight) {
- spanProps.className = this.highlightClass;
- }
-
- var node = { snippet };
+ var node =
+
+ { snippet }
+ ;
if (highlight && this.highlightLink) {
- node = {node}
+ node = {node}
}
+
return node;
}
}