From 15c9d933741f4dd7b0d141781f4f7dfd5e687678 Mon Sep 17 00:00:00 2001 From: kg422 Date: Fri, 14 Aug 2015 13:56:16 -0700 Subject: [PATCH] remove explicit null check --- HybridMobileDeploy.ios.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HybridMobileDeploy.ios.js b/HybridMobileDeploy.ios.js index ea691694..49723b04 100644 --- a/HybridMobileDeploy.ios.js +++ b/HybridMobileDeploy.ios.js @@ -46,7 +46,7 @@ function queryUpdate(callback) { if (err) callback(err); NativeHybridMobileDeploy.getLocalPackage(function(err, localPackage) { var queryPackage = {appVersion: configuration.appVersion}; - if (!err && localPackage !== null && localPackage.appVersion === configuration.appVersion) { + if (!err && localPackage && localPackage.appVersion === configuration.appVersion) { queryPackage = localPackage; } else if (err) { console.log(err);