Skip to content

Commit

Permalink
Merge pull request #3546 from scala-steward-org/fix/use-allowOrDefault
Browse files Browse the repository at this point in the history
Use `allowOrDefault` in `UpdatesConfig.isAllowed`
  • Loading branch information
fthomas authored Jan 16, 2025
2 parents 6e03c92 + 863d071 commit 5b13f31
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ final case class UpdatesConfig(
val m = UpdatePattern.findMatch(allowOrDefault, update, include = true)
if (m.filteredVersions.nonEmpty)
Right(update.copy(newerVersions = Nel.fromListUnsafe(m.filteredVersions)))
else if (allow.isEmpty)
else if (allowOrDefault.isEmpty)
Right(update)
else Left(NotAllowedByConfig(update))
}
Expand Down

0 comments on commit 5b13f31

Please sign in to comment.