Skip to content

Commit 863d071

Browse files
authored
Use allowOrDefault in UpdatesConfig.isAllowed
I forgot to update this reference in #3515. This is a subtle change in semantics. If `allow == Some(Nil)` `allow.isEmpty` is `false` and `allowOrDefault.isEmpty` is `true`.
1 parent 6e03c92 commit 863d071

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ final case class UpdatesConfig(
7979
val m = UpdatePattern.findMatch(allowOrDefault, update, include = true)
8080
if (m.filteredVersions.nonEmpty)
8181
Right(update.copy(newerVersions = Nel.fromListUnsafe(m.filteredVersions)))
82-
else if (allow.isEmpty)
82+
else if (allowOrDefault.isEmpty)
8383
Right(update)
8484
else Left(NotAllowedByConfig(update))
8585
}

0 commit comments

Comments
 (0)