Skip to content

Commit

Permalink
implicitly creating tuples
Browse files Browse the repository at this point in the history
  • Loading branch information
kolmar committed Aug 29, 2023
1 parent 060fce1 commit b5d72cc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class ConeOfInfluenceComputer {
if (modifiedEntities.foundMissingModules) {
println("Some solutions moved or deleted. Skipping cone of influence.")
def modulesUniverse = module2AllUpstreamDependencies.keySet()
new Tuple2(modulesUniverse.toList(), modulesUniverse.toList())
[modulesUniverse.toList(), modulesUniverse.toList()]
} else if (modifiedEntities.foundMissingModels) {
println("Some models moved or deleted. Computing cone of influence based on modules.")
computeGeneric(modifiedEntities.modules, module2AllUpstreamDependencies, module2AllDownstreamDependencies)
Expand All @@ -51,6 +51,6 @@ class ConeOfInfluenceComputer {
def upstreamAffectedEntities = allAffectedEntities.collectMany { upstreamDependencies[it] ?: [] }
def allAffectedEntitiesAndUpstreamDependencies = allAffectedEntities + upstreamAffectedEntities

new Tuple2(allAffectedEntities.toList(), allAffectedEntitiesAndUpstreamDependencies.toList())
[allAffectedEntities.toList(), allAffectedEntitiesAndUpstreamDependencies.toList()]
}
}

0 comments on commit b5d72cc

Please sign in to comment.