Skip to content

Commit 8e95b37

Browse files
committed
address review comments.
1 parent fc5710d commit 8e95b37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

buildSrc/src/main/java/com/google/firebase/gradle/plugins/ci/ChangedModulesTask.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ abstract class ChangedModulesTask : DefaultTask() {
3333
AffectedProjectFinder(project, changedGitPaths.toSet(), listOf()).find().map { it.path }
3434
.toSet()
3535

36-
val result = project.rootProject.subprojects.associateTo(mutableMapOf()) {
36+
val result = project.rootProject.subprojects.associate {
3737
it.path to mutableSetOf<String>()
3838
}
3939
project.rootProject.subprojects.forEach { p ->
4040
p.configurations.forEach { c ->
4141
c.dependencies.filterIsInstance<ProjectDependency>().forEach {
42-
result.getOrPut(it.dependencyProject.path) { mutableSetOf() }.add(p.path)
42+
result[it.dependencyProject.path]?.add(p.path)
4343
}
4444
}
4545
}

0 commit comments

Comments
 (0)