Bug 787988 - Remove useless Components.utils.reportError("0") in preferences/advanced.js. r+a=standard8
authoraceman <acelists@atlas.sk>
Mon, 24 Sep 2012 18:09:14 -0400
changeset 13501 8cb5a40800734e0c7750eb2e4e2921d60ebf554f
parent 13498 33330479abf8ab35ddb0f096f88aab28f932f95c
child 13502 5ebfbccd7efb0bffe0145a53ee12cb7c44ceaf90
push idunknown
push userunknown
push dateunknown
bugs787988
Bug 787988 - Remove useless Components.utils.reportError("0") in preferences/advanced.js. r+a=standard8
mail/components/preferences/advanced.js
--- a/mail/components/preferences/advanced.js
+++ b/mail/components/preferences/advanced.js
@@ -232,18 +232,17 @@ var gAdvancedPane = {
                   !autoPref.value || modePref.locked;
     warnIncompatible.disabled = disable;
 
 #ifdef MOZ_MAINTENANCE_SERVICE
     // Check to see if the maintenance service is installed.
     // If it is don't show the preference at all.
     var installed;
     try {
-      Components.utils.reportError("0");
-      var wrk = Components.classes["@mozilla.org/windows-registry-key;1"]
+      let wrk = Components.classes["@mozilla.org/windows-registry-key;1"]
                 .createInstance(Components.interfaces.nsIWindowsRegKey);
       wrk.open(wrk.ROOT_KEY_LOCAL_MACHINE,
                "SOFTWARE\\Mozilla\\MaintenanceService",
                wrk.ACCESS_READ | wrk.WOW64_64);
       installed = wrk.readIntValue("Installed");
       wrk.close();
     } catch(e) {
     }