Skip to content

Commit 7e3720a

Browse files
committed
Satisfy codacy
1 parent 78f5b28 commit 7e3720a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

modules/core/src/main/scala/org/scalasteward/core/repoconfig/UpdatesConfig.scala

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ import org.scalasteward.core.update.FilterAlg.{
3232
}
3333
import org.scalasteward.core.util.Nel
3434

35-
import scala.collection.mutable.ListBuffer
36-
3735
final case class UpdatesConfig(
3836
pin: List[UpdatePattern] = List.empty,
3937
allow: List[UpdatePattern] = List.empty,
@@ -133,7 +131,7 @@ object UpdatesConfig {
133131
// remove duplicates first by calling .distinct
134132
val xm: Map[GroupId, List[UpdatePattern]] = x.distinct.groupBy(_.groupId)
135133
val ym: Map[GroupId, List[UpdatePattern]] = y.distinct.groupBy(_.groupId)
136-
val builder = new ListBuffer[UpdatePattern]()
134+
val builder = new collection.mutable.ListBuffer[UpdatePattern]()
137135

138136
// first of all, we only allow intersection (superset)
139137
val keys = xm.keySet.intersect(ym.keySet)
@@ -156,7 +154,7 @@ object UpdatesConfig {
156154
case (_, true) => x
157155
case _ =>
158156
// case with concrete artifacts / versions
159-
val builder = new ListBuffer[UpdatePattern]()
157+
val builder = new collection.mutable.ListBuffer[UpdatePattern]()
160158
val xByArtifacts = x.groupBy(_.artifactId)
161159
val yByArtifacts = y.groupBy(_.artifactId)
162160

0 commit comments

Comments
 (0)