From 96caed84531cc1ad761e54ba560b594313a92695 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 28 Sep 2019 06:10:41 -0400 Subject: [PATCH] More concise version of f827f1e04 --- chrome/content/zotero/xpcom/data/tags.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/chrome/content/zotero/xpcom/data/tags.js b/chrome/content/zotero/xpcom/data/tags.js index cc77e8e5a9..e95b7b6042 100644 --- a/chrome/content/zotero/xpcom/data/tags.js +++ b/chrome/content/zotero/xpcom/data/tags.js @@ -579,10 +579,7 @@ Zotero.Tags = new function() { return _libraryColorsByName[libraryID]; } - var tagColors = Zotero.SyncedSettings.get(libraryID, 'tagColors'); - if (!tagColors) { - tagColors = []; - } + var tagColors = Zotero.SyncedSettings.get(libraryID, 'tagColors') || []; _libraryColors[libraryID] = tagColors; _libraryColorsByName[libraryID] = new Map;