MCPcopy Create free account
hub / github.com/TruthHun/BookStack / done

Function done

static/word2md/mammoth.browser.js:25262–25277  ·  view source on GitHub ↗
(stream, er, data)

Source from the content-addressed store, hash-verified

25260};
25261
25262function done(stream, er, data) {
25263 if (er) return stream.emit('error', er);
25264
25265 if (data !== null && data !== undefined) stream.push(data);
25266
25267 // if there's nothing in the write buffer, then that means
25268 // that nothing more will ever be provided
25269 var ws = stream._writableState;
25270 var ts = stream._transformState;
25271
25272 if (ws.length) throw new Error('Calling transform done when ws.length != 0');
25273
25274 if (ts.transforming) throw new Error('Calling transform done when still transforming');
25275
25276 return stream.push(null);
25277}
25278},{"./_stream_duplex":140,"core-util-is":78,"inherits":81}],144:[function(require,module,exports){
25279(function (process){
25280// A bit simpler than readable streams.

Calls

no outgoing calls

Tested by

no test coverage detected