mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-26 12:03:28 +08:00
Removing try/catch now that we have the new tests and committing latest
This commit is contained in:
parent
5db2de95f5
commit
4be413af79
11
bin/templates/cordova/Api.js
vendored
11
bin/templates/cordova/Api.js
vendored
@ -360,7 +360,6 @@ Api.prototype.run = function(runOptions) {
|
|||||||
*/
|
*/
|
||||||
Api.prototype.clean = function(cleanOptions) {
|
Api.prototype.clean = function(cleanOptions) {
|
||||||
var self = this;
|
var self = this;
|
||||||
try {
|
|
||||||
return require('./lib/check_reqs').run()
|
return require('./lib/check_reqs').run()
|
||||||
.then(function () {
|
.then(function () {
|
||||||
return require('./lib/build').runClean.call(self, cleanOptions);
|
return require('./lib/build').runClean.call(self, cleanOptions);
|
||||||
@ -368,16 +367,6 @@ Api.prototype.clean = function(cleanOptions) {
|
|||||||
.then(function () {
|
.then(function () {
|
||||||
return require('./lib/prepare').clean.call(self, cleanOptions);
|
return require('./lib/prepare').clean.call(self, cleanOptions);
|
||||||
});
|
});
|
||||||
}
|
|
||||||
catch (err) {
|
|
||||||
return require('../../lib/check_reqs').run()
|
|
||||||
.then(function () {
|
|
||||||
return require('./lib/build').runClean.call(self, cleanOptions);
|
|
||||||
})
|
|
||||||
.then(function () {
|
|
||||||
return require('./lib/prepare').clean.call(self, cleanOptions);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user