MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / destroy

Method destroy

out/cli.cjs:56063–56074  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

56061 });
56062 this._readableState.dataEmitted = false;
56063 this[kAbort] = abort;
56064 this[kConsume] = null;
56065 this[kBody] = null;
56066 this[kContentType] = contentType;
56067 this[kReading] = false;
56068 }
56069 destroy(err) {
56070 if (this.destroyed) {
56071 return this;
56072 }
56073 if (!err && !this._readableState.endEmitted) {
56074 err = new RequestAbortedError();
56075 }
56076 if (err) {
56077 this[kAbort]();

Callers 1

dumpMethod · 0.95

Calls 1

destroyMethod · 0.45

Tested by

no test coverage detected