mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 04:18:39 +00:00
fix: resolve some lgtm warnings (#1444)
* fix: warnings found by LGTM static analyzer
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user