cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nikhi...@apache.org
Subject [2/2] android commit: Fix jshint issues
Date Tue, 19 Jan 2016 20:07:01 GMT
Fix jshint issues


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

Branch: refs/heads/master
Commit: ada35e0e00bf3178a38c08e5b419f0d3bf825eae
Parents: fc77800
Author: Nikhil Khandelwal <nikhilkh@microsoft.com>
Authored: Tue Jan 19 12:01:44 2016 -0800
Committer: Nikhil Khandelwal <nikhilkh@microsoft.com>
Committed: Tue Jan 19 12:01:44 2016 -0800

----------------------------------------------------------------------
 bin/templates/cordova/lib/build.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-android/blob/ada35e0e/bin/templates/cordova/lib/build.js
----------------------------------------------------------------------
diff --git a/bin/templates/cordova/lib/build.js b/bin/templates/cordova/lib/build.js
index 694783f..47aaa16 100644
--- a/bin/templates/cordova/lib/build.js
+++ b/bin/templates/cordova/lib/build.js
@@ -94,8 +94,9 @@ function parseOpts(options, resolvedTarget) {
         if (config.android && config.android[ret.buildType]) {
             var androidInfo = config.android[ret.buildType];
             if(androidInfo.keystore && !packageArgs.keystore) {
-                if(androidInfo.keystore.substr(0,1) === '~')
-                    androidInfo.keystore = process.env.HOME + androidInfo.keystore.substr(1)
+                if(androidInfo.keystore.substr(0,1) === '~') {
+                    androidInfo.keystore = process.env.HOME + androidInfo.keystore.substr(1);
+                }
                 packageArgs.keystore = path.resolve(path.dirname(buildConfig), androidInfo.keystore);
                 events.emit('log', 'Reading the keystore from: ' + packageArgs.keystore);
             }


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


Mime
View raw message