We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 69ff3a6 + 0aba15f commit 55e63d9Copy full SHA for 55e63d9
lib/cache.js
@@ -12,7 +12,7 @@ function Cache(opts) {
12
this.opts.path = opts.path || path.join(__dirname, '/../cache');
13
14
this.locks = {};
15
-
+ var nop = function() {};
16
17
this.stat = function(fullpath) {
18
if (!fs.existsSync(fullpath))
@@ -55,7 +55,7 @@ function Cache(opts) {
55
var path = this.getPath(key),
56
file = fs.createReadStream(path.full);
57
file.on('finish', function() {
58
- file.close();
+ file.close(nop);
59
});
60
61
return file;
@@ -75,7 +75,7 @@ function Cache(opts) {
75
76
// release lock
77
delete (locks[key]);
78
79
80
81
0 commit comments