File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ var Generator = module.exports = function Generator() {
1515 this . appname = path . basename ( process . cwd ( ) ) ;
1616 }
1717 this . appname = this . _ . slugify ( this . appname ) ;
18- this . filters = this . config . get ( 'filters' ) ;
18+ this . filters = this . config . get ( 'filters' ) || { } ;
1919} ;
2020
2121util . inherits ( Generator , yeoman . generators . NamedBase ) ;
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ var Generator = module.exports = function Generator() {
1515 this . appname = path . basename ( process . cwd ( ) ) ;
1616 }
1717 this . appname = this . _ . slugify ( this . appname ) . split ( '-' ) . join ( '' ) ;
18- this . filters = this . config . get ( 'filters' ) ;
18+ this . filters = this . config . get ( 'filters' ) || { } ;
1919} ;
2020
2121util . inherits ( Generator , yeoman . generators . NamedBase ) ;
You can’t perform that action at this time.
0 commit comments