More concise version of f827f1e04

This commit is contained in:
Dan Stillman 2019-09-28 06:10:41 -04:00
parent f827f1e049
commit 96caed8453

View file

@ -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;