MCPcopy
hub / github.com/di-sukharev/opencommit / destroyStream

Function destroyStream

out/cli.cjs:7168–7175  ·  view source on GitHub ↗
(stream4, err)

Source from the content-addressed store, hash-verified

7166 });
7167 }
7168 function destroyStream(stream4, err) {
7169 if (stream4.destroy) {
7170 stream4.destroy(err);
7171 } else {
7172 stream4.emit("error", err);
7173 stream4.end();
7174 }
7175 }
7176 fetch4.isRedirect = function(code) {
7177 return code === 301 || code === 302 || code === 303 || code === 307 || code === 308;
7178 };

Callers 2

abortFunction · 0.85
fetch4Function · 0.85

Calls 3

endMethod · 0.80
destroyMethod · 0.45
emitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…