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 {
val odt = MimeType.application("vnd.oasis.opendocument.text")
val ods = MimeType.application("vnd.oasis.opendocument.spreadsheet")
@ -140,9 +139,9 @@ object Conversion {
def unapply(mt: MimeType): Option[MimeType] =
mt match {
case Office(_) => Some(mt)
case MimeType.TextAllMatch(_) => Some(mt)
case MimeType.ImageMatch(_) => Some(mt)
case _ => None
case Office(_) => Some(mt)
case MimeType.TextAllMatch(_) => Some(mt)
case MimeType.ImageMatch(_) => Some(mt)
case _ => None
}
}

View File

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

View File

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