TF-4236 Misleading variable name: maxBatches represents batch size, not batch count.

This commit is contained in:
dab246
2026-01-26 13:34:27 +07:00
committed by Dat H. Pham
parent fe57e72a02
commit 38074ab9f7
6 changed files with 13 additions and 10 deletions
@@ -694,10 +694,10 @@ class EmailAPI with
);
final listEmailIds = setEmailResponse?.destroyed?.toEmailIds() ?? [];
final mapErrors = handleSetResponse([setEmailResponse]);
final batchErrors = handleSetResponse([setEmailResponse]);
destroyedEmailIds.addAll(listEmailIds);
mapErrors.addAll(mapErrors);
mapErrors.addAll(batchErrors);
}
return (emailIdsSuccess: destroyedEmailIds, mapErrors: mapErrors);
@@ -24,4 +24,4 @@ class NotParsableBlobIdToEmailException implements Exception {
NotParsableBlobIdToEmailException({this.ids});
}
class EmailIdListIsEmptyException implements Exception {}
class EmailIdsSuccessIsEmptyException implements Exception {}
@@ -37,7 +37,7 @@ class AddALabelToAThreadInteractor {
));
} else if (result.emailIdsSuccess.isEmpty) {
yield Left(AddALabelToAThreadFailure(
exception: EmailIdListIsEmptyException(),
exception: EmailIdsSuccessIsEmptyException(),
labelDisplay: labelDisplay,
));
} else {
@@ -37,7 +37,7 @@ class RemoveALabelFromAThreadInteractor {
));
} else if (result.emailIdsSuccess.isEmpty) {
yield Left(RemoveALabelFromAThreadFailure(
exception: EmailIdListIsEmptyException(),
exception: EmailIdsSuccessIsEmptyException(),
labelDisplay: labelDisplay,
));
} else {