unwrap option values

Signed-off-by: Sebastian Schüpbach's avatarSebastian Schüpbach <sebastian.schuepbach@unibas.ch>
parent 4b8ca9ee
Pipeline #21313 passed with stages
in 6 minutes and 56 seconds
......@@ -34,7 +34,7 @@ trait FileUtils {
(id, mimeType) => s"${normalize(rootPath)}/$id.${getFileTypeExtension(mimeType).get}"
val videoPosterPath: (String, MimeType) => String =
(id, mimeType) => s"${normalize(rootPath)}/${id.replace("/derived", "")}-poster.${getFileTypeExtension(mimeType)}"
(id, mimeType) => s"${normalize(rootPath)}/${id.replace("/derived", "")}-poster.${getFileTypeExtension(mimeType).get}"
val audioFilePath: String => String =
id => s"${normalize(rootPath)}/$id.mp4"
......@@ -43,6 +43,6 @@ trait FileUtils {
id => s"${normalize(rootPath)}/$id-intro.mp3"
val imageFilePath: (String, MimeType) => String =
(id, mimeType) => s"${normalize(rootPath)}/$id.${getFileTypeExtension(mimeType)}"
(id, mimeType) => s"${normalize(rootPath)}/$id.${getFileTypeExtension(mimeType).get}"
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment