commit d9197235d53b8740b4a89fc7aac636da45e64766 parent ca0ad42a6ab3e33482460a7b9132269c7e405804 Author: Dan Stillman <dstillman@zotero.org> Date: Wed, 6 Mar 2013 14:31:30 -0500 Fix whitespace (from 53322e6e) Diffstat:
| M | chrome/content/zotero/xpcom/duplicates.js | | | 18 | +++++++++--------- |
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/chrome/content/zotero/xpcom/duplicates.js b/chrome/content/zotero/xpcom/duplicates.js @@ -243,17 +243,17 @@ Zotero.Duplicates.prototype._findDuplicates = function () { + "AND itemTypeID NOT IN (1, 14) " + "AND itemID NOT IN (SELECT itemID FROM deletedItems)"; var rows = Zotero.DB.query(sql, [this._libraryID]) || []; - //normalize all values ahead of time + // Normalize all values ahead of time rows = rows.map(function(row) { - row.value = normalizeString(row.value); - return row; - }); - //sort rows by normalized values + row.value = normalizeString(row.value); + return row; + }); + // Sort rows by normalized values rows = rows.sort(function(a, b) { - if(a.value === b.value) return 0; - if(a.value < b.value) return -1; - return 1; - }); + if(a.value === b.value) return 0; + if(a.value < b.value) return -1; + return 1; + }); processRows(function (a, b) { var aTitle = a.value; var bTitle = b.value;