Commit 6ec1f1a7 authored by Douwe Maan's avatar Douwe Maan

Remove unnecessary variable

parent 850b9983
...@@ -349,8 +349,6 @@ class CopyAsGFM { ...@@ -349,8 +349,6 @@ class CopyAsGFM {
} }
static nodeToGFM(node, respectWhitespaceParam = false) { static nodeToGFM(node, respectWhitespaceParam = false) {
let respectWhitespace = respectWhitespaceParam;
if (node.nodeType === Node.COMMENT_NODE) { if (node.nodeType === Node.COMMENT_NODE) {
return ''; return '';
} }
...@@ -359,7 +357,7 @@ class CopyAsGFM { ...@@ -359,7 +357,7 @@ class CopyAsGFM {
return node.textContent; return node.textContent;
} }
respectWhitespace = respectWhitespace || (node.nodeName === 'PRE' || node.nodeName === 'CODE'); const respectWhitespace = respectWhitespaceParam || (node.nodeName === 'PRE' || node.nodeName === 'CODE');
const text = this.innerGFM(node, respectWhitespace); const text = this.innerGFM(node, respectWhitespace);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment