Skip to content

Commit

Permalink
Pass back err on destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
davedoesdev committed Oct 8, 2020
1 parent be5b002 commit 51ff7ee
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion coverage/lcov-report/index.html
Expand Up @@ -95,7 +95,7 @@ <h1>All files</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
at Tue Oct 06 2020 07:29:05 GMT+0100 (British Summer Time)
at Thu Oct 08 2020 08:50:50 GMT+0100 (British Summer Time)
</div>
</div>
<script src="prettify.js"></script>
Expand Down
10 changes: 5 additions & 5 deletions coverage/lcov-report/index.js.html
Expand Up @@ -504,15 +504,15 @@ <h1><a href="index.html">All files</a> index.js</h1>
<span class="cline-any cline-yes">29x</span>
<span class="cline-any cline-yes">29x</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">210x</span>
<span class="cline-any cline-yes">211x</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">210x</span>
<span class="cline-any cline-yes">211x</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
Expand Down Expand Up @@ -988,7 +988,7 @@ <h1><a href="index.html">All files</a> index.js</h1>
}
}
&nbsp;
cb();
cb(err);
};
&nbsp;
exports.FastestWritable = FastestWritable;
Expand All @@ -1000,7 +1000,7 @@ <h1><a href="index.html">All files</a> index.js</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
at Tue Oct 06 2020 07:29:05 GMT+0100 (British Summer Time)
at Thu Oct 08 2020 08:50:50 GMT+0100 (British Summer Time)
</div>
</div>
<script src="prettify.js"></script>
Expand Down
10 changes: 5 additions & 5 deletions coverage/lcov.info
Expand Up @@ -22,7 +22,7 @@ FNDA:3,(anonymous_1)
FNDA:30,(anonymous_2)
FNDA:13,(anonymous_3)
FNDA:25,(anonymous_4)
FNDA:210,(anonymous_5)
FNDA:211,(anonymous_5)
FNDA:58,(anonymous_6)
FNDA:55,(anonymous_7)
FNDA:33,(anonymous_8)
Expand Down Expand Up @@ -52,10 +52,10 @@ DA:128,29
DA:130,25
DA:133,29
DA:134,29
DA:136,210
DA:138,2
DA:136,211
DA:138,3
DA:140,3
DA:144,210
DA:144,211
DA:148,1
DA:159,1
DA:161,58
Expand Down Expand Up @@ -123,7 +123,7 @@ LF:87
LH:87
BRDA:97,0,0,29
BRDA:97,0,1,1
BRDA:136,1,0,2
BRDA:136,1,0,3
BRDA:136,1,1,208
BRDA:171,2,0,3
BRDA:171,2,1,52
Expand Down
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -305,7 +305,7 @@ FastestWritable.prototype._destroy = function (err, cb)
}
}

cb();
cb(err);
};

exports.FastestWritable = FastestWritable;
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "fastest-writable",
"description": "Node.js Writable stream which goes at the speed of its fastest peer and ends peers which can't keep up",
"version": "2.2.0",
"version": "2.2.1",
"homepage": "https://github.com/davedoesdev/fastest-writable",
"author": {
"name": "David Halls",
Expand Down

0 comments on commit 51ff7ee

Please sign in to comment.