From cf54a5da341785b36146cc82d208e21560d47b27 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 19 Mar 2013 02:22:23 -0400 Subject: [PATCH] Fix code style Refs #274 --- chrome/content/zotero/xpcom/data/item.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index 0b1daac24d..1cafbf096a 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -591,7 +591,9 @@ Zotero.Item.prototype.setType = function(itemTypeID, loadIn) { this._itemDataLoaded = false; } else { - if(oldItemTypeID) this._markFieldChange('itemType', Zotero.ItemTypes.getName(oldItemTypeID)); + if (oldItemTypeID) { + this._markFieldChange('itemType', Zotero.ItemTypes.getName(oldItemTypeID)); + } if (!this._changedPrimaryData) { this._changedPrimaryData = {}; }