Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
PixelMultiStream.prototype._gotNextStream = function (stream) {
if (stream) {
if (stream.format && stream.format.height) {
onFormat.call(this, stream.format)
} else {
stream.on('format', onFormat.bind(this))
}
} else if (this._actualHeight !== this.format.height) {
this.emit('error', new Error('Total height of mosaiced images (' + this._actualHeight +
'px) did not match specified height (' + this.format.height + 'px)'))
}
MultiStream.prototype._gotNextStream.call(this, stream)
}