getResources() doesnt crash due to undefined variables anymore

This commit is contained in:
Kamil Burzynski 2016-02-04 11:35:24 +01:00
parent 78b90cca85
commit 2bf2c30536

View File

@ -243,10 +243,10 @@ class ServerlessProject {
* - Always populated
*/
getResources() {
getResources(options) {
let _this = this;
/*
let componentFolders = fs.readdirSync(path.join(_this._S.config.projectPath, c));
// Backwards Compatibility Support for s-modules.json
@ -287,7 +287,7 @@ class ServerlessProject {
});
}
}
*/
if (options.populate) {
return this.getPopulated(options).cloudFormation;
} else {