git ssb

0+

cel / ssb-pull-requests



Commit 69b2bd9359ee60e0852ecfeb89a4216ce7945ae0

take(1) the old fashioned way

Charles Lehner committed on 7/26/2016, 5:18:12 AM
Parent: 9c3b24671aec2d6174e5b2b5e62fad374a710b3c

Files changed

index.jschanged
index.jsView
@@ -66,10 +66,13 @@
6666 pull.filter(function (update) {
6767 return update.rev
6868 && (lte ? update.timestamp <= lte : true)
6969 }),
70- pull.take(1)
71- )(null, cb)
70+ pull.take(1),
71+ pull.collect(function (err, links) {
72+ cb(err, links && links[0])
73+ })
74+ )
7275 })
7376 }
7477
7578 function getRevs(prId, cb) {

Built with git-ssb-web