Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] remove null check from non-nullabe variables

Aman Raj Singh Mouryab8c6a67faa30
diff --git a/mobile/lib/ui/viewer/actions/file_selection_actions_widget.dart b/mobile/lib/ui/viewer/actions/file_selection_actions_widget.dart
index 3894ecd85f..c760d88f3e 100644
--- a/mobile/lib/ui/viewer/actions/file_selection_actions_widget.dart
+++ b/mobile/lib/ui/viewer/actions/file_selection_actions_widget.dart
@@ -76,7 +76,7 @@ class _FileSelectionActionsWidgetState
late CollectionActions collectionActions;
late bool isCollectionOwner;
final ScreenshotController screenshotController = ScreenshotController();
- late Uint8List? placeholderBytes;
+ late Uint8List placeholderBytes;
// _cachedCollectionForSharedLink is primarily used to avoid creating duplicate
// links if user keeps on creating Create link button after selecting
// few files. This link is reset on any selection changed;
@@ -756,7 +756,7 @@ class _FileSelectionActionsWidgetState
"${_cachedCollectionForSharedLink!.publicURLs?.first?.url}#$collectionKey";
unawaited(Clipboard.setData(ClipboardData(text: url)));
await shareImageAndUrl(
- placeholderBytes!,
+ placeholderBytes,
url,
context: context,
key: sendLinkButtonKey,