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

Function g5

out/cli.cjs:7834–7847  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7832 _6(e5.closed, (t4) => (e5 !== i3 || (o3.error(t4), n2.error(t4), h4 && p4 || a4(void 0)), null));
7833 }
7834 function g5() {
7835 l3 && (i3.releaseLock(), i3 = e4.getReader(), y6(i3), l3 = false), b6(i3.read(), (e5) => {
7836 var t4, r4;
7837 if (d7 = false, f4 = false, e5.done) return h4 || o3.close(), p4 || n2.close(), null === (t4 = o3.byobRequest) || void 0 === t4 || t4.respond(0), null === (r4 = n2.byobRequest) || void 0 === r4 || r4.respond(0), h4 && p4 || a4(void 0), null;
7838 const l4 = e5.value, u3 = l4;
7839 let c4 = l4;
7840 if (!h4 && !p4) try {
7841 c4 = le2(l4);
7842 } catch (e6) {
7843 return o3.error(e6), n2.error(e6), a4(i3.cancel(e6)), null;
7844 }
7845 return h4 || o3.enqueue(u3), p4 || n2.enqueue(c4), s2 = false, d7 ? S6() : f4 && v5(), null;
7846 }, () => (s2 = false, null));
7847 }
7848 function w7(t4, r4) {
7849 l3 || (i3.releaseLock(), i3 = e4.getReader({ mode: "byob" }), y6(i3), l3 = true);
7850 const u3 = r4 ? n2 : o3, c4 = r4 ? o3 : n2;

Callers 3

ktFunction · 0.85
S6Function · 0.85
v5Function · 0.85

Calls 13

y6Function · 0.85
b6Function · 0.85
le2Function · 0.85
S6Function · 0.85
v5Function · 0.85
releaseLockMethod · 0.45
getReaderMethod · 0.45
readMethod · 0.45
closeMethod · 0.45
respondMethod · 0.45
errorMethod · 0.45
cancelMethod · 0.45

Tested by

no test coverage detected