Removes stage/region existence check from toObjectPopulated(options)

This commit is contained in:
Egor Kislitsyn 2016-03-24 19:14:50 +07:00
parent ee41e94574
commit 375ee9d764
2 changed files with 0 additions and 6 deletions

View File

@ -46,9 +46,6 @@ module.exports = function(S) {
toObjectPopulated(options) {
options = options || {};
// Validate: Check Stage & Region
if (!options.stage || !options.region) throw new SError('Both "stage" and "region" params are required');
// Validate: Check project path is set
if (!S.hasProject()) throw new SError('Function could not be populated because no project path has been set on Serverless instance');

View File

@ -107,9 +107,6 @@ module.exports = function(S) {
toObjectPopulated(options) {
options = options || {};
// Validate: Check Stage & Region
if (!options.stage || !options.region) throw new SError('Both "stage" and "region" params are required');
// Validate: Check project path is set
if (!S.hasProject()) throw new SError('Resources could not be populated because no project path has been set on Serverless instance');