Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fixes: Based on the review

Muhammed Ayimenadc157fe56d6
diff --git a/lib/ui/settings/data/import/bitwarden_import.dart b/lib/ui/settings/data/import/bitwarden_import.dart
index fbf9ed16e9..ce2dce3f2a 100644
--- a/lib/ui/settings/data/import/bitwarden_import.dart
+++ b/lib/ui/settings/data/import/bitwarden_import.dart
@@ -41,7 +41,7 @@ Future<void> showBitwardenImportInstruction(BuildContext context) async {
if (result?.action != null && result!.action != ButtonAction.cancel) {
if (result.action == ButtonAction.first) {
await _pickBitwardenJsonFile(context);
- } else {}
+ }
}
}
@@ -75,14 +75,6 @@ Future<int?> _processBitwardenExportFile(
String path,
) async {
File file = File(path);
- if (path.endsWith('.zip')) {
- await showErrorDialog(
- context,
- context.l10n.sorry,
- "We don't support zip files yet. Please unzip the file and try again.",
- );
- return null;
- }
final jsonString = await file.readAsString();
final data = jsonDecode(jsonString);
List<dynamic> jsonArray = data['items'];
@@ -107,6 +99,5 @@ Future<int?> _processBitwardenExportFile(
await CodeStore.instance.addCode(code, shouldSync: false);
}
unawaited(AuthenticatorService.instance.onlineSync());
- int count = parsedCodes.length;
- return count;
+ return parsedCodes.length;
}