Skip to content

Commit

Permalink
lift(0) -> headOption
Browse files Browse the repository at this point in the history
  • Loading branch information
armanbilge authored Nov 8, 2023
1 parent 2ef6dd0 commit 65beed5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ object TypelevelSitePlugin extends AutoPlugin {
case spec @ JavaSpec(_, version)
if version
.split('.')
.lift(0)
.headOption
.flatMap(v => Try(v.toInt).toOption)
.exists(_ >= 11) =>
spec
Expand Down

0 comments on commit 65beed5

Please sign in to comment.