Update scalafmt-core to 2.6.0

This commit is contained in:
Eike Kettner 2020-06-17 19:53:56 +02:00
parent 7a3d2e4dc6
commit 897d91475e
6 changed files with 10 additions and 15 deletions

View File

@ -1,4 +1,4 @@
version = "2.5.3"
version = "2.6.0"
preset = defaultWithAlign

View File

@ -3,7 +3,6 @@ package docspell.analysis.split
import fs2.Stream
/** Splits text into words.
*
*/
object TextSplitter {
private[this] val trimChars =

View File

@ -226,8 +226,7 @@ object LenientUri {
else if (acc.startsWith("%")) (acc :+ c, res)
else if (c == '%') ("%", res)
else (acc, res :+ c.toByte)
}
._2
}._2
.decodeUtf8
.fold(throw _, identity)

View File

@ -13,7 +13,6 @@ import docspell.store.records._
/** Super simple approach to find corresponding meta data to an item
* by looking up values from NER in the users address book.
*
*/
object FindProposal {

View File

@ -7,7 +7,6 @@ import docspell.joex.scheduler.Task
import docspell.store.records._
/** Saves the proposals in the database
*
*/
object SaveProposals {

View File

@ -17,8 +17,7 @@ trait ResponseGenerator[F[_]] {
e.fold(
a => UnprocessableEntity(a),
b => Ok(b)
)
.map(_.withHeaders(headers: _*))
).map(_.withHeaders(headers: _*))
}
implicit final class OptionResponse[A](o: Option[A]) {