Skip to content

Commit 67257d4

Browse files
committed
fix(gen): opt out of insight if in CI
1 parent 7be23bd commit 67257d4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: app/generator.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ export default class Generator extends Base {
3838
// init shared generator properies and methods
3939
genBase(this);
4040

41-
if(insight.optOut === undefined) {
41+
if(process.env.CI) {
42+
insight.optOut = true;
43+
return cb();
44+
} else if(insight.optOut === undefined) {
4245
insight.askPermission(null, cb);
4346
} else {
4447
return cb();

0 commit comments

Comments
 (0)