diff --git a/modules/convert/src/main/scala/docspell/convert/Conversion.scala b/modules/convert/src/main/scala/docspell/convert/Conversion.scala index 97ed1b98..a77672f9 100644 --- a/modules/convert/src/main/scala/docspell/convert/Conversion.scala +++ b/modules/convert/src/main/scala/docspell/convert/Conversion.scala @@ -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 } } diff --git a/modules/joex/src/main/scala/docspell/joex/process/TextExtraction.scala b/modules/joex/src/main/scala/docspell/joex/process/TextExtraction.scala index 539c816e..e1bb4de1 100644 --- a/modules/joex/src/main/scala/docspell/joex/process/TextExtraction.scala +++ b/modules/joex/src/main/scala/docspell/joex/process/TextExtraction.scala @@ -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]( diff --git a/modules/store/src/main/scala/docspell/store/syntax/MimeTypes.scala b/modules/store/src/main/scala/docspell/store/syntax/MimeTypes.scala index ff36e600..39ff549e 100644 --- a/modules/store/src/main/scala/docspell/store/syntax/MimeTypes.scala +++ b/modules/store/src/main/scala/docspell/store/syntax/MimeTypes.scala @@ -5,7 +5,6 @@ import docspell.common._ object MimeTypes { - implicit final class BitpeaceMimeTypeOps(bmt: Mimetype) { def toLocal: MimeType =