Skip to content

Commit 5b13f31

Browse files
authored
Merge pull request scala-steward-org#3546 from scala-steward-org/fix/use-allowOrDefault
Use `allowOrDefault` in `UpdatesConfig.isAllowed`
2 parents 6e03c92 + 863d071 commit 5b13f31

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)