Skip to content

Commit 5fabbaa

Browse files
committed
Example fix
1 parent e7aa766 commit 5fabbaa

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

apps/Test App/Test App/Model/UploadListModel.swift

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,7 @@ class UploadListModel : ObservableObject {
1717
handler: { uploads in
1818
var uploadSet = Set(self.lastKnownUploads)
1919
uploads.forEach {
20-
21-
if case MuxUpload.InputStatus.ready = $0.inputStatus {
22-
return
23-
} else if case MuxUpload.InputStatus.started = $0.inputStatus {
24-
return
25-
} else if case MuxUpload.InputStatus.preparing = $0.inputStatus {
26-
return
27-
} else if case MuxUpload.InputStatus.awaitingUploadConfirmation = $0.inputStatus {
28-
return
29-
} else {
30-
uploadSet.insert($0)
31-
}
32-
33-
20+
uploadSet.insert($0)
3421
}
3522
self.lastKnownUploads = Array(uploadSet)
3623
.sorted(

0 commit comments

Comments
 (0)