deploy api: code clean-up and add todo

This commit is contained in:
Austen Collins 2015-09-04 00:12:32 -07:00
parent b6ff09ab48
commit 1b189d2ec8

View File

@ -521,7 +521,7 @@ ApiDeployer.prototype._createEndpointMethodResponses = Promise.method(function(e
+ ': created method response for the path: '
+ endpoint.endpoint.path);
})
.catch(function (error) {
.catch(function(error) {
throw new JawsError(
error.message,
JawsError.errorCodes.UNKNOWN);
@ -539,7 +539,7 @@ ApiDeployer.prototype._createEndpointMethodIntegResponses = Promise.method(funct
var _this = this;
return Promise.try(function () {
return Promise.try(function() {
// Collect Response Keys
if (endpoint.endpoint.responses) return Object.keys(endpoint.endpoint.responses);
@ -613,7 +613,7 @@ module.exports = function(JAWS) {
* @param stage
* @returns {bluebird|exports|module.exports}
*/
JAWS.deployApi = function (stage, region, allTagged) {
JAWS.deployApi = function(stage, region, allTagged) {
return new Promise(function(resolve, reject) {
// Check stage exists
@ -679,4 +679,3 @@ module.exports = function(JAWS) {
});
};
};