Procházet zdrojové kódy

Allow build on Swift 5.8

onevcat před 1 rokem
rodič
revize
907dcc3ef5

+ 4 - 4
Sources/General/ImageSource/LivePhotoSource.swift

@@ -195,10 +195,10 @@ extension LivePhotoResource.FileType {
 extension Resource {
     var guessedFileType: LivePhotoResource.FileType {
         let pathExtension = downloadURL.pathExtension.lowercased()
-        return switch pathExtension {
-        case "mov": .mov
-        case "heic": .heic
-        default: .other(pathExtension)
+        switch pathExtension {
+        case "mov": return .mov
+        case "heic": return .heic
+        default: return .other(pathExtension)
         }
     }
 }