From 65beed564d69356cc6162f51a7801cf8943bd0a8 Mon Sep 17 00:00:00 2001 From: Arman Bilge Date: Tue, 7 Nov 2023 18:46:46 -0800 Subject: [PATCH] `lift(0)` -> `headOption` --- site/src/main/scala/org/typelevel/sbt/TypelevelSitePlugin.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/src/main/scala/org/typelevel/sbt/TypelevelSitePlugin.scala b/site/src/main/scala/org/typelevel/sbt/TypelevelSitePlugin.scala index fe5a2dcd..21ad6e3f 100644 --- a/site/src/main/scala/org/typelevel/sbt/TypelevelSitePlugin.scala +++ b/site/src/main/scala/org/typelevel/sbt/TypelevelSitePlugin.scala @@ -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