Remove unnecessary variable

This commit is contained in:
Douwe Maan 2017-05-24 08:08:28 -05:00
parent 850b99830e
commit 6ec1f1a738
1 changed files with 1 additions and 3 deletions

View File

@ -349,8 +349,6 @@ class CopyAsGFM {
}
static nodeToGFM(node, respectWhitespaceParam = false) {
let respectWhitespace = respectWhitespaceParam;
if (node.nodeType === Node.COMMENT_NODE) {
return '';
}
@ -359,7 +357,7 @@ class CopyAsGFM {
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);