MCPcopy Index your code
hub / github.com/OneNoteDev/WebClipper / done

Function done

lib/sanitize-html.js:7118–7131  ·  view source on GitHub ↗
(stream, er)

Source from the content-addressed store, hash-verified

7116};
7117
7118function done(stream, er) {
7119 if (er) return stream.emit('error', er);
7120
7121 // if there's nothing in the write buffer, then that means
7122 // that nothing more will ever be provided
7123 var ws = stream._writableState;
7124 var ts = stream._transformState;
7125
7126 if (ws.length) throw new Error('Calling transform done when ws.length != 0');
7127
7128 if (ts.transforming) throw new Error('Calling transform done when still transforming');
7129
7130 return stream.push(null);
7131}
7132},{"./_stream_duplex":44,"core-util-is":6,"inherits":38}],48:[function(require,module,exports){
7133(function (process){
7134// A bit simpler than readable streams.

Callers 15

TransformFunction · 0.85
testsMethod · 0.85
testsMethod · 0.85
testsMethod · 0.85
testsMethod · 0.85
testsMethod · 0.85
testsMethod · 0.85
testsMethod · 0.85
testsMethod · 0.85
testsMethod · 0.85
testsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected