mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
deploy api: code clean-up and add todo
This commit is contained in:
parent
b6ff09ab48
commit
1b189d2ec8
@ -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) {
|
||||
});
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user