mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-26 03:53:09 +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) {
|
||||
var self = this;
|
||||
try {
|
||||
return require('./lib/check_reqs').run()
|
||||
.then(function () {
|
||||
return require('./lib/build').runClean.call(self, cleanOptions);
|
||||
@ -368,16 +367,6 @@ Api.prototype.clean = function(cleanOptions) {
|
||||
.then(function () {
|
||||
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