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

Function chunkInvalid

static/word2md/mammoth.browser.js:24548–24554  ·  view source on GitHub ↗
(state, chunk)

Source from the content-addressed store, hash-verified

24546};
24547
24548function chunkInvalid(state, chunk) {
24549 var er = null;
24550 if (!Buffer.isBuffer(chunk) && typeof chunk !== 'string' && chunk !== null && chunk !== undefined && !state.objectMode) {
24551 er = new TypeError('Invalid non-string/buffer chunk');
24552 }
24553 return er;
24554}
24555
24556function onEofChunk(stream, state) {
24557 if (state.ended) return;

Callers 1

readableAddChunkFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected