Skip to content

Commit 27c42bc

Browse files
committed
Move implicits closer to scope
1 parent d99a80c commit 27c42bc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import org.scalasteward.core.update.FilterAlg.{
3030
VersionPinnedByConfig
3131
}
3232
import org.scalasteward.core.util.Nel
33-
import cats.implicits._
3433

3534
import scala.collection.mutable.ListBuffer
3635

@@ -176,11 +175,14 @@ object UpdatesConfig {
176175
private def satisfyUpdatePattern(
177176
targetUpdatePattern: UpdatePattern,
178177
comparedUpdatePatternsByArtifact: Map[Option[String], List[UpdatePattern]]
179-
): Boolean =
178+
): Boolean = {
179+
import cats.implicits._
180+
180181
comparedUpdatePatternsByArtifact.get(targetUpdatePattern.artifactId).exists { matchedVersions =>
181182
// For simplicity I'm using direct equals here between versions. Feel free to make it more advanced
182183
matchedVersions.exists(up => up.version.isEmpty || up.version === targetUpdatePattern.version)
183184
}
185+
}
184186

185187
// Strategy: union
186188
private[repoconfig] def mergeIgnore(

0 commit comments

Comments
 (0)