Skip to content

Commit 907dcc3

Browse files
committed
Allow build on Swift 5.8
1 parent 5407b11 commit 907dcc3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/General/ImageSource/LivePhotoSource.swift

+4-4
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,10 @@ extension LivePhotoResource.FileType {
195195
extension Resource {
196196
var guessedFileType: LivePhotoResource.FileType {
197197
let pathExtension = downloadURL.pathExtension.lowercased()
198-
return switch pathExtension {
199-
case "mov": .mov
200-
case "heic": .heic
201-
default: .other(pathExtension)
198+
switch pathExtension {
199+
case "mov": return .mov
200+
case "heic": return .heic
201+
default: return .other(pathExtension)
202202
}
203203
}
204204
}

0 commit comments

Comments
 (0)