Skip to content

Commit 69f0ba7

Browse files
committed
Merge remote-tracking branch 'badeball/master'
* badeball/master: Access WriteStream of fs during runtime instead of include time
2 parents ac052e9 + e5491cb commit 69f0ba7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/file.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
if (global.GENTLY) require = GENTLY.hijack(require);
22

33
var util = require('util'),
4-
WriteStream = require('fs').WriteStream,
4+
fs = require('fs'),
55
EventEmitter = require('events').EventEmitter,
66
crypto = require('crypto');
77

@@ -31,7 +31,7 @@ module.exports = File;
3131
util.inherits(File, EventEmitter);
3232

3333
File.prototype.open = function() {
34-
this._writeStream = new WriteStream(this.path);
34+
this._writeStream = new fs.WriteStream(this.path);
3535
};
3636

3737
File.prototype.toJSON = function() {

0 commit comments

Comments
 (0)