Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Simplify export error rethrow

Prateek Sunal248ce405be19
diff --git a/mobile/apps/photos/lib/ui/tools/editor/video_editor_page.dart b/mobile/apps/photos/lib/ui/tools/editor/video_editor_page.dart
index 68b75e3729..f626e05d6e 100644
--- a/mobile/apps/photos/lib/ui/tools/editor/video_editor_page.dart
+++ b/mobile/apps/photos/lib/ui/tools/editor/video_editor_page.dart
@@ -422,11 +422,7 @@ class _VideoEditorPageState extends State<VideoEditorPage> {
continue;
}
- if (error is Error) {
- throw error;
- } else {
- throw error!;
- }
+ throw error;
}
}
@@ -489,11 +485,7 @@ class _VideoEditorPageState extends State<VideoEditorPage> {
continue;
}
- if (error is Error) {
- throw error;
- } else {
- throw error!;
- }
+ throw error;
}
}