Browse Source

delete unnecessary check in a loop in processDMsnippet()

master
Simon Grim 10 years ago
parent
commit
7082d0aedd
  1. 2
      js/twister_directmsg.js

2
js/twister_directmsg.js

@ -20,7 +20,6 @@ function processDMsnippet(dmUsers, dmThreadList) {
dmThreadList.empty(); dmThreadList.empty();
for (var u in dmUsers) { for (var u in dmUsers) {
if (dmUsers[u]) {
// convert snipped to html and add it to date-sorted list // convert snipped to html and add it to date-sorted list
var dmItem = dmDataToSnippetItem(dmUsers[u][0], u); var dmItem = dmDataToSnippetItem(dmUsers[u][0], u);
var timeDmItem = parseInt(dmItem.attr('data-time')); var timeDmItem = parseInt(dmItem.attr('data-time'));
@ -37,7 +36,6 @@ function processDMsnippet(dmUsers, dmThreadList) {
if (j === existingItems.length) if (j === existingItems.length)
dmThreadList.append(dmItem); dmThreadList.append(dmItem);
} }
}
$.MAL.dmThreadListLoaded(); $.MAL.dmThreadListLoaded();
} }

Loading…
Cancel
Save