Skip to content

Commit 2e8bd54

Browse files
committed
fix(gen): don't use arrow func
1 parent 381d949 commit 2e8bd54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script-base.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var Generator = module.exports = function Generator() {
1616
this.lodash = lodash;
1717

1818
if(!process.env.CI) {
19-
yoCheckPromise = genUtils.runCmd('yo --version').then(stdout => {
19+
yoCheckPromise = genUtils.runCmd('yo --version').then(function(stdout) {
2020
if(!semver.satisfies(semver.clean(stdout), '>= 1.7.1')) {
2121
throw new Error('ERROR: You need to update yo to at least 1.7.1 (npm i -g yo)');
2222
}

0 commit comments

Comments
 (0)