Skip to content

Commit 35d7d34

Browse files
committed
minor tweaks and warning fixes
1 parent 033bfc2 commit 35d7d34

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

Django Files/Views/Lists/FileList.swift

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ struct FileListView: View {
413413
},
414414
onLoadMore: {
415415
if hasNextPage && !isLoading {
416-
await loadNextPage()
416+
loadNextPage()
417417
}
418418
}
419419
)
@@ -797,15 +797,6 @@ struct FileListView: View {
797797
// Show toast message for the error
798798
ToastManager.shared.showToast(message: errorMsg)
799799
}
800-
} catch {
801-
if !append {
802-
files = []
803-
}
804-
let errorMsg = "Error loading files: \(error.localizedDescription)"
805-
errorMessage = errorMsg
806-
isLoading = false
807-
// Show toast message for the error
808-
ToastManager.shared.showToast(message: errorMsg)
809800
}
810801
}
811802

Django Files/Views/Preview/Video.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ struct VideoPlayerView: View {
4848
}
4949

5050
// Set up status observation
51-
let statusObserver = currentItem.observe(\.status, options: [.new]) { item, _ in
51+
let _ = currentItem.observe(\.status, options: [.new]) { item, _ in
5252
DispatchQueue.main.async {
5353
switch item.status {
5454
case .readyToPlay:

0 commit comments

Comments
 (0)