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

Method push

out/cli.cjs:56102–56108  ·  view source on GitHub ↗
(chunk)

Source from the content-addressed store, hash-verified

56100 if (ev === "data" || ev === "readable") {
56101 this[kReading] = this.listenerCount("data") > 0 || this.listenerCount("readable") > 0;
56102 }
56103 return ret;
56104 }
56105 removeListener(ev, ...args) {
56106 return this.off(ev, ...args);
56107 }
56108 push(chunk) {
56109 if (this[kConsume] && chunk !== null && this.readableLength === 0) {
56110 consumePush(this[kConsume], chunk);
56111 return this[kReading] ? super.push(chunk) : true;

Callers

nothing calls this directly

Calls 2

consumePushFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected