cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [3/3] cordova-windows git commit: Removed verbose strict inequality tests
Date Fri, 13 Mar 2015 18:33:36 GMT
Removed verbose strict inequality tests


Project: http://git-wip-us.apache.org/repos/asf/cordova-windows/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-windows/commit/3a0d1324
Tree: http://git-wip-us.apache.org/repos/asf/cordova-windows/tree/3a0d1324
Diff: http://git-wip-us.apache.org/repos/asf/cordova-windows/diff/3a0d1324

Branch: refs/heads/master
Commit: 3a0d13241c3419d263b60e2d72f093c1a46cd307
Parents: abc7715
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Thu Mar 12 18:29:08 2015 -0700
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Thu Mar 12 18:29:08 2015 -0700

----------------------------------------------------------------------
 cordova-js-src/exec.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/3a0d1324/cordova-js-src/exec.js
----------------------------------------------------------------------
diff --git a/cordova-js-src/exec.js b/cordova-js-src/exec.js
index 6b8a904..88d34c0 100644
--- a/cordova-js-src/exec.js
+++ b/cordova-js-src/exec.js
@@ -61,7 +61,7 @@ module.exports = function (success, fail, service, action, args) {
             onSuccess = function (result, callbackOptions) {
                 callbackOptions = callbackOptions || {};
                 var callbackStatus;
-                if (callbackOptions.status !== null && callbackOptions.status !==
undefined) {
+                if (callbackOptions.status != null) {
                     callbackStatus = callbackOptions.status;
                 }
                 else {
@@ -77,7 +77,7 @@ module.exports = function (success, fail, service, action, args) {
             onError = function (err, callbackOptions) {
                 callbackOptions = callbackOptions || {};
                 var callbackStatus;
-                if (callbackOptions.status !== null && callbackOptions.status !==
undefined) {
+                if (callbackOptions.status != null) {
                     callbackStatus = callbackOptions.status;
                 }
                 else {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message