Bug 1514483 - Follow-up: Fix linting issues. rs=white-space-only DONTBUILD
authorJorg K <jorgk@jorgk.com>
Mon, 17 Dec 2018 09:42:07 +0100
changeset 34012 9c7743f3523920e86fb4c0c84d9dc6cd12e9ed45
parent 34011 c550aac138145e16c2c28419e336787e4d913916
child 34013 e1b29b3607c4f67fb2bcdf1118ba15dc7132ffe1
push id389
push userclokep@gmail.com
push dateMon, 18 Mar 2019 19:01:53 +0000
reviewerswhite-space-only
bugs1514483
Bug 1514483 - Follow-up: Fix linting issues. rs=white-space-only DONTBUILD
calendar/base/content/dialogs/calendar-print-dialog.js
calendar/base/content/import-export.js
--- a/calendar/base/content/dialogs/calendar-print-dialog.js
+++ b/calendar/base/content/dialogs/calendar-print-dialog.js
@@ -35,17 +35,17 @@ function loadCalendarPrintDialog() {
         document.getElementById("selected").setAttribute("disabled", true);
     }
     document.getElementById(theView ? "printCurrentViewRadio" : "custom-range")
             .setAttribute("selected", true);
 
     // Get a list of formatters.
     // Walk the list, adding items to the layout menupopup.
     let layoutList = document.getElementById("layout-field");
-    for (let {data} of Services.catMan.enumerateCategory("cal-print-formatters")) {
+    for (let { data } of Services.catMan.enumerateCategory("cal-print-formatters")) {
         let contractid = Services.catMan.getCategoryEntry("cal-print-formatters", data);
         let formatter = Components.classes[contractid]
                                   .getService(Components.interfaces.calIPrintFormatter);
         // Use the contractid as value
         layoutList.appendItem(formatter.name, contractid);
     }
     layoutList.selectedIndex = 0;
 
--- a/calendar/base/content/import-export.js
+++ b/calendar/base/content/import-export.js
@@ -27,17 +27,17 @@ function loadEventsFromFile(aCalendar) {
                 cal.l10n.getCalString("filepickerTitleImport"),
                 nsIFilePicker.modeOpen);
     picker.defaultExtension = "ics";
 
     // Get a list of importers
     let contractids = [];
     let currentListLength = 0;
     let defaultCIDIndex = 0;
-    for (let {data} of Services.catMan.enumerateCategory("cal-importers")) {
+    for (let { data } of Services.catMan.enumerateCategory("cal-importers")) {
         let contractid = Services.catMan.getCategoryEntry("cal-importers", data);
         let importer;
         try {
             importer = Components.classes[contractid]
                                  .getService(Components.interfaces.calIImporter);
         } catch (e) {
             cal.WARN("Could not initialize importer: " + contractid + "\nError: " + e);
             continue;
@@ -232,17 +232,17 @@ function saveEventsToFile(calendarEventA
     }
 
     picker.defaultExtension = "ics";
 
     // Get a list of exporters
     let contractids = [];
     let currentListLength = 0;
     let defaultCIDIndex = 0;
-    for (let {data} of Services.catMan.enumerateCategory("cal-exporters")) {
+    for (let { data } of Services.catMan.enumerateCategory("cal-exporters")) {
         let contractid = Services.catMan.getCategoryEntry("cal-exporters", data);
         let exporter;
         try {
             exporter = Components.classes[contractid]
                                  .getService(Components.interfaces.calIExporter);
         } catch (e) {
             cal.WARN("Could not initialize exporter: " + contractid + "\nError: " + e);
             continue;