Removing try/catch now that we have the new tests and committing latest

This commit is contained in:
Joe Bowser 2016-10-07 10:45:44 -07:00
parent 5db2de95f5
commit 4be413af79

View File

@ -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);
});
}
};
/**