Skip to content

Commit 78f5b28

Browse files
committed
Satisfy codacy
1 parent 27c42bc commit 78f5b28

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
package org.scalasteward.core.repoconfig
1818

19+
import cats.implicits._
1920
import cats.kernel.Semigroup
2021
import eu.timepit.refined.types.numeric.PosInt
2122
import io.circe.generic.extras.Configuration
@@ -146,7 +147,7 @@ object UpdatesConfig {
146147
}
147148

148149
// merge UpdatePattern for same group id
149-
private def mergeAllowGroupId(
150+
private[this] def mergeAllowGroupId(
150151
x: List[UpdatePattern],
151152
y: List[UpdatePattern]
152153
): List[UpdatePattern] =
@@ -172,12 +173,10 @@ object UpdatesConfig {
172173
else builder.toList
173174
}
174175

175-
private def satisfyUpdatePattern(
176+
private[this] def satisfyUpdatePattern(
176177
targetUpdatePattern: UpdatePattern,
177178
comparedUpdatePatternsByArtifact: Map[Option[String], List[UpdatePattern]]
178179
): Boolean = {
179-
import cats.implicits._
180-
181180
comparedUpdatePatternsByArtifact.get(targetUpdatePattern.artifactId).exists { matchedVersions =>
182181
// For simplicity I'm using direct equals here between versions. Feel free to make it more advanced
183182
matchedVersions.exists(up => up.version.isEmpty || up.version === targetUpdatePattern.version)

0 commit comments

Comments
 (0)