From 4be413af796fba606279e1cdb2850bdce3483372 Mon Sep 17 00:00:00 2001 From: Joe Bowser Date: Fri, 7 Oct 2016 10:45:44 -0700 Subject: [PATCH] Removing try/catch now that we have the new tests and committing latest --- bin/templates/cordova/Api.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/bin/templates/cordova/Api.js b/bin/templates/cordova/Api.js index 2f1fd864..af21b22f 100644 --- a/bin/templates/cordova/Api.js +++ b/bin/templates/cordova/Api.js @@ -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); - }); - } }; /**