Commit a4e2fe6fffcdd836e472a276536499fee878188e
remove unnecessary line from asyncMap
Dominic Tarr committed on 4/24/2016, 8:18:44 AMParent: 8e8bed8c073f9a820967f843c134158cb92d4b88
Files changed
throughs.js | changed |
throughs.js | ||
---|---|---|
@@ -62,14 +62,10 @@ | ||
62 | 62 | }) |
63 | 63 | } |
64 | 64 | else |
65 | 65 | 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) | |
72 | 68 | else { |
73 | 69 | busy = true |
74 | 70 | map(data, function (err, data) { |
75 | 71 | busy = false |
@@ -85,22 +81,8 @@ | ||
85 | 81 | } |
86 | 82 | } |
87 | 83 | } |
88 | 84 | |
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 | -// | |
103 | 85 | var filter = exports.filter = |
104 | 86 | function (test) { |
105 | 87 | //regexp |
106 | 88 | test = tester(test) |
@@ -249,11 +231,4 @@ | ||
249 | 231 | } |
250 | 232 | } |
251 | 233 | } |
252 | 234 | |
253 | - | |
254 | - | |
255 | - | |
256 | - | |
257 | - | |
258 | - | |
259 | - |
Built with git-ssb-web