git ssb

2+

Dominic / pull-stream



Commit a4e2fe6fffcdd836e472a276536499fee878188e

remove unnecessary line from asyncMap

Dominic Tarr committed on 4/24/2016, 8:18:44 AM
Parent: 8e8bed8c073f9a820967f843c134158cb92d4b88

Files changed

throughs.jschanged
throughs.jsView
@@ -62,14 +62,10 @@
6262 })
6363 }
6464 else
6565 read(null, function (end, data) {
66- if(end) {
67- cb(end)
68- if(abortCb) cb(end, data)
69- }
70- else if(aborted)
71- cb(aborted)
66+ if(end) cb(end)
67+ else if(aborted) cb(aborted)
7268 else {
7369 busy = true
7470 map(data, function (err, data) {
7571 busy = false
@@ -85,22 +81,8 @@
8581 }
8682 }
8783 }
8884
89-
90-//function asyncMap (map) {
91-// if(!map) return id //when read is passed, pass it on.
92-// return function (read) {
93-// return function (end, cb) {
94-// if(end) return read(end, cb) //abort
95-// read(null, function (end, data) {
96-// if(end) return cb(end, data)
97-// map(data, cb)
98-// })
99-// }
100-// }
101-//}
102-//
10385 var filter = exports.filter =
10486 function (test) {
10587 //regexp
10688 test = tester(test)
@@ -249,11 +231,4 @@
249231 }
250232 }
251233 }
252234
253-
254-
255-
256-
257-
258-
259-

Built with git-ssb-web