Skip to content
This repository was archived by the owner on Dec 2, 2024. It is now read-only.

Commit f7188c1

Browse files
committed
always check flush
1 parent 6fc112a commit f7188c1

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

leveldown.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,13 @@ Multilevel.prototype.createRpcStream = function (opts, proxy) {
5959
}
6060

6161
switch (tag) {
62-
case 0: return oncallback(res)
63-
case 1: return oniteratordata(res)
62+
case 0:
63+
oncallback(res)
64+
break
65+
66+
case 1:
67+
oniteratordata(res)
68+
break
6469
}
6570

6671
self._flushMaybe()

0 commit comments

Comments
 (0)