mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
Removes stage/region existence check from toObjectPopulated(options)
This commit is contained in:
parent
ee41e94574
commit
375ee9d764
@ -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');
|
||||
|
||||
|
||||
@ -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');
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user