ScalafmtAll

This commit is contained in:
Eike Kettner 2020-05-25 13:46:42 +02:00
parent 2e88207ff1
commit 56624515a5
3 changed files with 5 additions and 9 deletions

View File

@ -98,7 +98,6 @@ object Conversion {
} }
}) })
object Office { object Office {
val odt = MimeType.application("vnd.oasis.opendocument.text") val odt = MimeType.application("vnd.oasis.opendocument.text")
val ods = MimeType.application("vnd.oasis.opendocument.spreadsheet") val ods = MimeType.application("vnd.oasis.opendocument.spreadsheet")

View File

@ -82,9 +82,7 @@ object TextExtraction {
.getOrElse(Mimetype.`application/octet-stream`) .getOrElse(Mimetype.`application/octet-stream`)
findMime findMime
.flatMap(mt => .flatMap(mt => extr.extractText(data, DataType(mt.toLocal), lang))
extr.extractText(data, DataType(mt.toLocal), lang)
)
} }
private def extractTextFallback[F[_]: Sync: ContextShift]( private def extractTextFallback[F[_]: Sync: ContextShift](

View File

@ -5,7 +5,6 @@ import docspell.common._
object MimeTypes { object MimeTypes {
implicit final class BitpeaceMimeTypeOps(bmt: Mimetype) { implicit final class BitpeaceMimeTypeOps(bmt: Mimetype) {
def toLocal: MimeType = def toLocal: MimeType =