Skip to content

Commit 9c7c542

Browse files
committed
Release v1.1.1
Fix cleanup code
1 parent fc1f0c8 commit 9c7c542

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function cleanup(key) {
3030
callbackQueue[key] = null;
3131
if (++nulls > nullThreshold) {
3232
callbackQueue = omit(callbackQueue, function removeNulls(datum) {
33-
return !!datum;
33+
return datum === null;
3434
});
3535
}
3636
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "callback-queue",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "Put your callbacks into queue to make sure that concurrent requests that you might want to perform will only be executed once",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)