Bug 1059687 - suppress errant "test for equality mistyped as assignment" warning; r=fabrice
authorMyk Melez <myk@mozilla.org>
Thu, 28 Aug 2014 10:35:56 -0700
changeset 223822 7a6e3931a0f1de22d74ee23fefba0ed51fa01326
parent 223821 4062a2a685a2d0e8c9e839bf30c5f0bc76ecf69c
child 223823 42eac3f85526f0d5cf98f45b255c80f89a11a415
push id3979
push userraliiev@mozilla.com
push dateMon, 13 Oct 2014 16:35:44 +0000
treeherdermozilla-beta@30f2cc610691 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfabrice
bugs1059687
milestone34.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1059687 - suppress errant "test for equality mistyped as assignment" warning; r=fabrice
dom/apps/src/Webapps.jsm
--- a/dom/apps/src/Webapps.jsm
+++ b/dom/apps/src/Webapps.jsm
@@ -3698,17 +3698,17 @@ this.DOMApplicationRegistry = {
       } else {
         yield this._promptForUninstall(aData);
       }
     } catch (error) {
       aData.error = error;
       response = "Webapps:Uninstall:Return:KO";
     }
 
-    if (aMm = aMm.get()) {
+    if ((aMm = aMm.get())) {
       aMm.sendAsyncMessage(response, aData);
     }
   }),
 
   uninstall: function(aManifestURL) {
     return this._getAppWithManifest(aManifestURL)
       .then(this._uninstallApp.bind(this));
   },