Bug 880643 - Part 2: Address the suggestion from jshint. r=hsinyi
authorSzu-Yu Chen [:aknow] <szchen@mozilla.com>
Wed, 31 Jul 2013 16:03:57 +0800
changeset 148294 144bc645eee343845c6fa338d3535e50ac0f41d3
parent 148293 9fa65f1d3803798fbc0b22a6ccff48631a5feddb
child 148295 0ecb8e64dc08b38ca567edb6937814b2972dbff4
child 148324 5027fa1fe7336a9d9faa6637bd637bc7a4f812fb
push id4085
push userbbajaj@mozilla.com
push dateMon, 05 Aug 2013 20:29:25 +0000
treeherdermozilla-aurora@ede8780a15bc [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewershsinyi
bugs880643
milestone25.0a1
Bug 880643 - Part 2: Address the suggestion from jshint. r=hsinyi --- dom/system/gonk/RILContentHelper.js | 6 +++--- dom/system/gonk/RadioInterfaceLayer.js | 2 +- dom/system/gonk/ril_worker.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-)
dom/system/gonk/RILContentHelper.js
dom/system/gonk/RadioInterfaceLayer.js
dom/system/gonk/ril_worker.js
--- a/dom/system/gonk/RILContentHelper.js
+++ b/dom/system/gonk/RILContentHelper.js
@@ -355,34 +355,34 @@ CallBarringOption.prototype = {
                       password: 'r',
                       serviceClass: 'r'}
 };
 
 function DOMMMIResult(result) {
   this.serviceCode = result.serviceCode;
   this.statusMessage = result.statusMessage;
   this.additionalInformation = result.additionalInformation;
-};
+}
 DOMMMIResult.prototype = {
   __exposedProps__: {serviceCode: 'r',
                      statusMessage: 'r',
                      additionalInformation: 'r'}
 };
 
 function DOMCLIRStatus(option) {
   this.n = option.n;
   this.m = option.m;
-};
+}
 DOMCLIRStatus.prototype = {
   __exposedProps__ : {n: 'r',
                       m: 'r'}
 };
 
 function DOMMMIError() {
-};
+}
 DOMMMIError.prototype = {
   classDescription: "DOMMMIError",
   classID:          DOMMMIERROR_CID,
   contractID:       "@mozilla.org/dom/mmi-error;1",
   QueryInterface:   XPCOMUtils.generateQI([Ci.nsISupports]),
   __init: function(serviceCode,
                    name,
                    message,
--- a/dom/system/gonk/RadioInterfaceLayer.js
+++ b/dom/system/gonk/RadioInterfaceLayer.js
@@ -32,17 +32,17 @@ try {
   debugPref = Services.prefs.getBoolPref("ril.debugging.enabled");
 } catch(e) {
   debugPref = false;
 }
 DEBUG = RIL.DEBUG_RIL || debugPref;
 
 function debug(s) {
   dump("-*- RadioInterfaceLayer: " + s + "\n");
-};
+}
 
 const RADIOINTERFACELAYER_CID =
   Components.ID("{2d831c8d-6017-435b-a80c-e5d422810cea}");
 const RADIOINTERFACE_CID =
   Components.ID("{6a7c91f0-a2b3-4193-8562-8969296c0b54}");
 const RILNETWORKINTERFACE_CID =
   Components.ID("{3bdd52a9-3965-4130-b569-0ac5afed045e}");
 
--- a/dom/system/gonk/ril_worker.js
+++ b/dom/system/gonk/ril_worker.js
@@ -3301,17 +3301,17 @@ let RIL = {
       } else {
         if (mmiServiceCode === MMI_KS_SC_PIN ||
             mmiServiceCode === MMI_KS_SC_PIN2) {
           options.errorMsg = MMI_ERROR_KS_BAD_PIN;
         } else if (mmiServiceCode === MMI_KS_SC_PUK ||
                    mmiServiceCode === MMI_KS_SC_PUK2) {
           options.errorMsg = MMI_ERROR_KS_BAD_PUK;
         }
-        if (options.retryCount != undefined) {
+        if (options.retryCount !== undefined) {
           options.additionalInformation = options.retryCount;
         }
       }
     }
 
     this.sendChromeMessage(options);
   },
 
@@ -5341,17 +5341,17 @@ RIL[REQUEST_QUERY_FACILITY_LOCK] = funct
     if (!options.enabled) {
       options.statusMessage = MMI_SM_KS_SERVICE_DISABLED;
     } else {
       options.statusMessage = MMI_SM_KS_SERVICE_ENABLED_FOR;
       let serviceClass = [];
       for (let serviceClassMask = 1;
            serviceClassMask <= ICC_SERVICE_CLASS_MAX;
            serviceClassMask <<= 1) {
-        if ((serviceClassMask & services) != 0) {
+        if ((serviceClassMask & services) !== 0) {
           serviceClass.push(MMI_KS_SERVICE_CLASS_MAPPING[serviceClassMask]);
         }
       }
 
       options.additionalInformation = serviceClass;
     }
   }
   this.sendChromeMessage(options);