|
|
@@ -398,11 +398,11 @@ export function findTxDependencies(deltas: Delta[], candidates?: Set<Delta>): Tr
|
|
|
if (!deltas.includes(dependency)) {
|
|
|
const txs = dependency.partOf;
|
|
|
const filteredTxs = candidates !== undefined ?
|
|
|
- txs.filter(d => candidates!.has(d)) : txs;
|
|
|
- if (txs.length > 1) {
|
|
|
+ txs.filter(tx => candidates!.has(tx)) : txs;
|
|
|
+ if (filteredTxs.length > 1) {
|
|
|
throw new Error("Error: One of the composite's dependencies is contained by multiple composites.");
|
|
|
}
|
|
|
- if (txs.length === 0) {
|
|
|
+ if (filteredTxs.length === 0) {
|
|
|
// throw new Error("Assertion failed: delta " + delta.description + " depends on " + dependency.description + " but this dependency could not be found in a composite.");
|
|
|
continue;
|
|
|
}
|