Skip to content

Commit b9716a8

Browse files
committed
fi
1 parent e9b37a1 commit b9716a8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/tabs/json_processor_tab.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ class _JSONProcessorTabState extends State<JSONProcessorTab> with SingleTickerPr
183183
return null;
184184
}
185185

186-
Future<void> _processRecordConcurrently(int index, Map<String, dynamic> record) async {
186+
Future<Map<String, dynamic>?> _processRecordConcurrently(int index, Map<String, dynamic> record) async {
187187
final username = record['username']?.toString() ?? '';
188188

189189
if (!username.contains('facebook.com')) {
@@ -257,7 +257,7 @@ class _JSONProcessorTabState extends State<JSONProcessorTab> with SingleTickerPr
257257
final batchEnd = (i + 5) < _data.length ? i + 5 : _data.length;
258258
_addLog('Processing batch ${(i ~/ 5) + 1}: records ${i + 1}-$batchEnd', type: LogType.info);
259259

260-
final batchFutures = <Future>[];
260+
final batchFutures = <Future<Map<String, dynamic>?>>[];
261261
for (int j = i; j < batchEnd; j++) {
262262
batchFutures.add(_processRecordConcurrently(j, _data[j]));
263263
}
@@ -267,7 +267,7 @@ class _JSONProcessorTabState extends State<JSONProcessorTab> with SingleTickerPr
267267

268268
for (final result in batchResults) {
269269
if (result != null) {
270-
successfulRecords.add(result as Map<String, dynamic>);
270+
successfulRecords.add(result);
271271
successCount++;
272272
} else {
273273
failCount++;

0 commit comments

Comments
 (0)