From 2e514a5905050394c6719d85ce8980cdbbaa3aa2 Mon Sep 17 00:00:00 2001 From: kenji yoshida <6b656e6a69@gmail.com> Date: Sun, 6 Oct 2024 08:06:46 +0900 Subject: [PATCH] add parentheses. prepare sbt 2.x --- src/main/scala/sbtunidoc/Unidoc.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/sbtunidoc/Unidoc.scala b/src/main/scala/sbtunidoc/Unidoc.scala index 6daf9d1..2c29c3e 100644 --- a/src/main/scala/sbtunidoc/Unidoc.scala +++ b/src/main/scala/sbtunidoc/Unidoc.scala @@ -52,10 +52,10 @@ object Unidoc { private[this] def exported(s: TaskStreams, command: String): Seq[String] => Unit = args => exported(s.text("export"), command) private[this] def foldMappers[A](mappers: Seq[A => Option[A]]) = - mappers.foldRight({ p: A => + mappers.foldRight({ (p: A) => p }) { (mapper, mappers) => - { p: A => + { (p: A) => mapper(p).getOrElse(mappers(p)) } }