TF-4236 Misleading variable name: maxBatches represents batch size, not batch count.
This commit is contained in:
@@ -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 {
|
||||
|
||||
+1
-1
@@ -37,7 +37,7 @@ class RemoveALabelFromAThreadInteractor {
|
||||
));
|
||||
} else if (result.emailIdsSuccess.isEmpty) {
|
||||
yield Left(RemoveALabelFromAThreadFailure(
|
||||
exception: EmailIdListIsEmptyException(),
|
||||
exception: EmailIdsSuccessIsEmptyException(),
|
||||
labelDisplay: labelDisplay,
|
||||
));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user