git ssb

2+

Dominic / pull-stream



Commit 07f559dee40225c43f4722eb12e835df95763bc1

accept an error or a cb on sink.abort

Dominic Tarr committed on 2/28/2016, 5:01:32 AM
Parent: 1465c435b5bdca801da81cbf710d69f5fbc087c9

Files changed

sinks.jschanged
sinks.jsView
@@ -50,8 +50,10 @@
5050 })()
5151 }
5252
5353 sink.abort = function (err, cb) {
54+ if('function' == typeof err)
55+ cb = err, err = true
5456 abort = err || true
5557 if(read) return read(abort, cb || function () {})
5658 }
5759

Built with git-ssb-web