Browse Source

only forward non nullish mapped data

session-estimator
Mathias Buus 4 years ago
parent
commit
78e312ef16
  1. 10
      lib/query.js

10
lib/query.js

@ -164,7 +164,15 @@ module.exports = class Query extends Readable {
this._slowdown = false
}
if (m.status !== 0 || this.push(this.map(m)) !== false) this._readMore()
if (m.status !== 0) {
this._readMore()
return
}
const data = this.map(m)
if (!data || this.push(data) !== false) {
this._readMore()
}
}
_onerror () {

Loading…
Cancel
Save