Skip to content

Commit 8c50a59

Browse files
committed
Quality gate fixes, part 2
1 parent 12b2ee9 commit 8c50a59

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ui/js/diff2html-ui.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@
162162

163163

164164
Diff2HtmlUI.prototype._getSelectedText = function() {
165-
var table = $('.d2h-diff-table');
166165
var sel = window.getSelection();
167166
var range = sel.getRangeAt(0);
168167
var doc = range.cloneContents();
@@ -174,7 +173,7 @@
174173
text = doc.textContent;
175174
} else {
176175
[].forEach.call(nodes, function(tr, i) {
177-
var td = tr.cells[tr.cells.length == 1 ? 0 : idx];
176+
var td = tr.cells[tr.cells.length === 1 ? 0 : idx];
178177
text += (i ? '\n' : '') + td.textContent.replace(/(?:\r\n|\r|\n)/g, '');
179178
});
180179
}

0 commit comments

Comments
 (0)