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

Method mergeArray

out/cli.cjs:29408–29418  ·  view source on GitHub ↗
(status, results)

Source from the content-addressed store, hash-verified

29406 this.value = "aborted";
29407 }
29408 static mergeArray(status, results) {
29409 const arrayValue = [];
29410 for (const s2 of results) {
29411 if (s2.status === "aborted")
29412 return exports2.INVALID;
29413 if (s2.status === "dirty")
29414 status.dirty();
29415 arrayValue.push(s2.value);
29416 }
29417 return { status: status.value, value: arrayValue };
29418 }
29419 static async mergeObjectAsync(status, pairs) {
29420 const syncPairs = [];
29421 for (const pair of pairs) {

Callers 2

_parseMethod · 0.80
_parseMethod · 0.80

Calls 2

dirtyMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected