feat(quality): harden lint rules and add quality-gate tests
This commit is contained in:
@@ -1226,11 +1226,10 @@ class _SeccionBackup extends StatelessWidget {
|
||||
if (result == null || result.files.single.path == null) return;
|
||||
|
||||
final file = File(result.files.single.path!);
|
||||
final contenido = await file.readAsString();
|
||||
if (!context.mounted) return;
|
||||
// Parsing is owned by ServicioExportImport (S4-R4): null = malformed.
|
||||
final json = context.read<EstadoRadio>().parsearConfigJson(
|
||||
await file.readAsString(),
|
||||
);
|
||||
final json = context.read<EstadoRadio>().parsearConfigJson(contenido);
|
||||
if (json == null) {
|
||||
throw const FormatException('invalid backup file');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user