fix: resolve some lgtm warnings (#1444)

* fix: warnings found by LGTM static analyzer
This commit is contained in:
Charles Kerr
2020-09-11 16:07:45 -05:00
committed by GitHub
parent d3323ddee0
commit efaa66a920
29 changed files with 213 additions and 222 deletions

View File

@@ -163,17 +163,13 @@ function FileRow(torrent, depth, name, indices, even) {
e = document.createElement('div');
e.className = "inspector_torrent_file_list_entry_name";
setTextContent(e, name);
$(e).click(function () {
fireNameClicked(-1);
});
$(e).click(fireNameClicked);
root.appendChild(e);
e = document.createElement('div');
e.className = "inspector_torrent_file_list_entry_progress";
root.appendChild(e);
$(e).click(function () {
fireNameClicked(-1);
});
$(e).click(fireNameClicked);
elements.progress = e;
$(root).css('margin-left', '' + (depth * 16) + 'px');