(callback)
| 42 | callback(err); |
| 43 | } |
| 44 | _flush(callback) { |
| 45 | if (this.state.stop === true) { |
| 46 | // Note, Node.js 12 call flush even after an error, we must prevent |
| 47 | // `callback` from being called in flush without any error. |
| 48 | return; |
| 49 | } |
| 50 | if (this.info.records === 0) { |
| 51 | this.api.bom(this.push.bind(this)); |
| 52 | const err = this.api.headers(this.push.bind(this)); |
| 53 | if (err) callback(err); |
| 54 | } |
| 55 | callback(); |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | const stringify = function () { |
nothing calls this directly
no test coverage detected