fix: Simplify image picking logic by removing null check for pickedFiles

This commit is contained in:
Vaibhav Surve 2025-06-18 12:18:25 +05:30
parent 206c84b3a1
commit 58a66546e4

View File

@ -309,7 +309,7 @@ class ReportTaskController extends MyController {
}
} else {
final pickedFiles = await _picker.pickMultiImage(imageQuality: 75);
if (pickedFiles != null && pickedFiles.isNotEmpty) {
if (pickedFiles.isNotEmpty) {
selectedImages.addAll(pickedFiles.map((xfile) => File(xfile.path)));
}
}