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

Function rejectPromise

out/cli.cjs:1765–1770  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

1763 const stream5 = bufferStream(options);
1764 await new Promise((resolve, reject) => {
1765 const rejectPromise = (error) => {
1766 if (error && stream5.getBufferedLength() <= BufferConstants.MAX_LENGTH) {
1767 error.bufferedData = stream5.getBufferedValue();
1768 }
1769 reject(error);
1770 };
1771 (async () => {
1772 try {
1773 await streamPipelinePromisified(inputStream, stream5);

Callers 4

getStream3Function · 0.85
readMethod · 0.85
_nextStepsMethod · 0.85
readMethod · 0.85

Calls 1

rejectFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…