Sign in
apache
/
cordova-osx
/
6d00379c5b0ff30714987ad3172e30356620105b
/
.
/
node_modules
/
minipass
/
bench
/
lib
/
nullsink.js
blob: 13f6e916b9ccff75357ecec8abd3ef7d3c3b4ed8 [
file
] [
log
] [
blame
]
'use strict'
const
EE
=
require
(
'events'
).
EventEmitter
module
.
exports
=
class
NullSink
extends EE
{
write
(
data
,
encoding
,
next
)
{
if
(
next
)
next
()
return
true
}
end
()
{
this
.
emit
(
'finish'
)
}
}