π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
refactor: Remove unnecessary local variable for sessionId
Prateek Sunalb80cdcc19ec3
diff --git a/mobile/apps/photos/lib/services/video_preview_service.dart b/mobile/apps/photos/lib/services/video_preview_service.dartindex c66cdda01d..30415f2e33 100644--- a/mobile/apps/photos/lib/services/video_preview_service.dart+++ b/mobile/apps/photos/lib/services/video_preview_service.dart@@ -148,9 +148,8 @@ class VideoPreviewService {clearQueue();computeController.releaseCompute(stream: true);- final sessionId = _currentFfmpegSessionId;- if (sessionId != null) {- await FFmpegKit.cancel(sessionId);+ if (_currentFfmpegSessionId != null) {+ await FFmpegKit.cancel(_currentFfmpegSessionId!);_currentFfmpegSessionId = null;}}