From 00e63f0f8a3a81ed881e65764c3541b75fc5254f Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 21 Apr 2023 05:44:17 -0400 Subject: [PATCH] Lint: Fix some missing spaces that make eslint behave annoyingly --- chrome/content/zotero/xpcom/attachments.js | 2 +- chrome/content/zotero/xpcom/data/searchConditions.js | 2 +- chrome/content/zotero/xpcom/file.js | 2 +- chrome/content/zotero/xpcom/fulltext.js | 2 +- chrome/content/zotero/xpcom/mime.js | 2 +- chrome/content/zotero/xpcom/notifier.js | 2 +- chrome/content/zotero/xpcom/prefs.js | 2 +- chrome/content/zotero/xpcom/schema.js | 2 +- chrome/content/zotero/xpcom/zotero.js | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/chrome/content/zotero/xpcom/attachments.js b/chrome/content/zotero/xpcom/attachments.js index 9460cd2759..39830e0dd7 100644 --- a/chrome/content/zotero/xpcom/attachments.js +++ b/chrome/content/zotero/xpcom/attachments.js @@ -23,7 +23,7 @@ ***** END LICENSE BLOCK ***** */ -Zotero.Attachments = new function(){ +Zotero.Attachments = new function () { // Keep in sync with Zotero.Schema.integrityCheck() and this.linkModeToName() this.LINK_MODE_IMPORTED_FILE = 0; this.LINK_MODE_IMPORTED_URL = 1; diff --git a/chrome/content/zotero/xpcom/data/searchConditions.js b/chrome/content/zotero/xpcom/data/searchConditions.js index b9456e2bb3..c62f856dad 100644 --- a/chrome/content/zotero/xpcom/data/searchConditions.js +++ b/chrome/content/zotero/xpcom/data/searchConditions.js @@ -23,7 +23,7 @@ ***** END LICENSE BLOCK ***** */ -Zotero.SearchConditions = new function(){ +Zotero.SearchConditions = new function () { this.get = get; this.getStandardConditions = getStandardConditions; this.hasOperator = hasOperator; diff --git a/chrome/content/zotero/xpcom/file.js b/chrome/content/zotero/xpcom/file.js index 7aa90be8cb..b6229727c3 100644 --- a/chrome/content/zotero/xpcom/file.js +++ b/chrome/content/zotero/xpcom/file.js @@ -27,7 +27,7 @@ * Functions for reading files * @namespace */ -Zotero.File = new function(){ +Zotero.File = new function () { Components.utils.import("resource://gre/modules/NetUtil.jsm"); Components.utils.import("resource://gre/modules/FileUtils.jsm"); diff --git a/chrome/content/zotero/xpcom/fulltext.js b/chrome/content/zotero/xpcom/fulltext.js index e55ccf9e5b..28611fdd9b 100644 --- a/chrome/content/zotero/xpcom/fulltext.js +++ b/chrome/content/zotero/xpcom/fulltext.js @@ -23,7 +23,7 @@ ***** END LICENSE BLOCK ***** */ -Zotero.Fulltext = Zotero.FullText = new function(){ +Zotero.Fulltext = Zotero.FullText = new function () { this.isCachedMIMEType = isCachedMIMEType; this.__defineGetter__("pdfConverterCacheFile", function () { return '.zotero-ft-cache'; }); diff --git a/chrome/content/zotero/xpcom/mime.js b/chrome/content/zotero/xpcom/mime.js index 155d1edb51..36aa86c6d0 100644 --- a/chrome/content/zotero/xpcom/mime.js +++ b/chrome/content/zotero/xpcom/mime.js @@ -23,7 +23,7 @@ ***** END LICENSE BLOCK ***** */ -Zotero.MIME = new function(){ +Zotero.MIME = new function () { this.isTextType = isTextType; this.getPrimaryExtension = getPrimaryExtension; this.sniffForBinary = sniffForBinary; diff --git a/chrome/content/zotero/xpcom/notifier.js b/chrome/content/zotero/xpcom/notifier.js index 387c16a13d..2a082a2c45 100644 --- a/chrome/content/zotero/xpcom/notifier.js +++ b/chrome/content/zotero/xpcom/notifier.js @@ -25,7 +25,7 @@ "use strict"; -Zotero.Notifier = new function(){ +Zotero.Notifier = new function () { // Options that apply to an entire event, not a specific object this.EVENT_LEVEL_OPTIONS = ['autoSyncDelay', 'skipAutoSync']; diff --git a/chrome/content/zotero/xpcom/prefs.js b/chrome/content/zotero/xpcom/prefs.js index 92804467d0..3d1086e635 100644 --- a/chrome/content/zotero/xpcom/prefs.js +++ b/chrome/content/zotero/xpcom/prefs.js @@ -22,7 +22,7 @@ ***** END LICENSE BLOCK ***** */ -Zotero.Prefs = new function(){ +Zotero.Prefs = new function () { // Privileged methods this.get = get; this.set = set; diff --git a/chrome/content/zotero/xpcom/schema.js b/chrome/content/zotero/xpcom/schema.js index af8bd6b0d3..26f7cd1fc3 100644 --- a/chrome/content/zotero/xpcom/schema.js +++ b/chrome/content/zotero/xpcom/schema.js @@ -23,7 +23,7 @@ ***** END LICENSE BLOCK ***** */ -Zotero.Schema = new function(){ +Zotero.Schema = new function () { this.dbInitialized = false; this.goToChangeLog = false; diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js index 45388532a5..2abf5878ac 100644 --- a/chrome/content/zotero/xpcom/zotero.js +++ b/chrome/content/zotero/xpcom/zotero.js @@ -38,7 +38,7 @@ Services.scriptloader.loadSubScript("resource://zotero/polyfill.js"); /* * Core functions */ - (function(){ + (function () { // Privileged (public) methods this.getStorageDirectory = getStorageDirectory; this.debug = debug;