commit | 1029a473cd32b2872ddd235723b1302f31e97eea | [log] [tgz] |
---|---|---|
author | Daniele Sassoli <danielesassoli@gmail.com> | Thu Jan 26 16:43:13 2023 +0000 |
committer | Daniele Sassoli <danielesassoli@gmail.com> | Thu Jan 26 16:43:13 2023 +0000 |
tree | 5a3327ae2b74e7b6ef41d625d3f594d9ad41c8f7 | |
parent | 1f30d846680670eefd089d3a60c86ef8b65888c4 [diff] |
Use more idiomatic Scala Change-Id: I0d3f847a65e453fcae759732d91bd3e89d4bc953
diff --git a/src/main/scala/com/googlesource/gerrit/plugins/analytics/common/AggregatedCommitHistogram.scala b/src/main/scala/com/googlesource/gerrit/plugins/analytics/common/AggregatedCommitHistogram.scala index f39fc73..2d30b47 100644 --- a/src/main/scala/com/googlesource/gerrit/plugins/analytics/common/AggregatedCommitHistogram.scala +++ b/src/main/scala/com/googlesource/gerrit/plugins/analytics/common/AggregatedCommitHistogram.scala
@@ -28,7 +28,7 @@ extends CommitHistogram { def includeWithBranches(commit: RevCommit, user: PersonIdent, branches: Set[String]): Unit = { - for (branch <- branches) { + branches.foreach { branch => val originalStrategy = aggregationStrategy this.aggregationStrategy = BY_BRANCH(branch, aggregationStrategy) this.include(commit, user)