Skip to content

Commit 44d86a3

Browse files
committed
Create a updated instance of mem-fs-editor
1 parent 067501c commit 44d86a3

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

lib/index.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -220,13 +220,7 @@ class Generator extends EventEmitter {
220220
}
221221
}
222222

223-
try {
224-
this.fs = this.env.fs || require('mem-fs-editor').create(this.env.sharedFs);
225-
} catch (_) {
226-
throw new Error(
227-
"Current environment don't provides some necessary feature this generator needs"
228-
);
229-
}
223+
this.fs = require('mem-fs-editor').create(this.env.sharedFs);
230224

231225
this.description = this.description || '';
232226

0 commit comments

Comments
 (0)