mirror of
https://github.com/apache/cordova-android.git
synced 2025-04-01 12:22:41 +08:00
Moving the console.log out of run() method
Since cordova-cli calls the check_req library run() method, we do not want to always console.log on success in there (not usually a useful side effect).
This commit is contained in:
parent
2f66ec60db
commit
3d4ccbec23
@ -21,8 +21,11 @@
|
|||||||
|
|
||||||
var check_reqs = require('./lib/check_reqs');
|
var check_reqs = require('./lib/check_reqs');
|
||||||
|
|
||||||
check_reqs.run().done(null, function(err) {
|
check_reqs.run().done(
|
||||||
|
function success() {
|
||||||
|
console.log('Looks like your environment fully supports cordova-android development!');
|
||||||
|
}, function fail(err) {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
process.exit(2);
|
process.exit(2);
|
||||||
});
|
}
|
||||||
|
);
|
||||||
|
@ -91,8 +91,6 @@ module.exports.check_android = function() {
|
|||||||
|
|
||||||
// Returns a promise.
|
// Returns a promise.
|
||||||
module.exports.run = function() {
|
module.exports.run = function() {
|
||||||
return Q.all([this.check_ant(), this.check_java(), this.check_android()]).then(function() {
|
return Q.all([this.check_ant(), this.check_java(), this.check_android()]);
|
||||||
console.log('Looks like your environment fully supports cordova-android development!');
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user