File tree 2 files changed +2
-2
lines changed
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() {
15
15
this . appname = path . basename ( process . cwd ( ) ) ;
16
16
}
17
17
this . appname = this . _ . slugify ( this . appname ) ;
18
- this . filters = this . config . get ( 'filters' ) ;
18
+ this . filters = this . config . get ( 'filters' ) || { } ;
19
19
} ;
20
20
21
21
util . 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() {
15
15
this . appname = path . basename ( process . cwd ( ) ) ;
16
16
}
17
17
this . appname = this . _ . slugify ( this . appname ) . split ( '-' ) . join ( '' ) ;
18
- this . filters = this . config . get ( 'filters' ) ;
18
+ this . filters = this . config . get ( 'filters' ) || { } ;
19
19
} ;
20
20
21
21
util . inherits ( Generator , yeoman . generators . NamedBase ) ;
You can’t perform that action at this time.
0 commit comments