TF-495 Implement linter for composer
This commit is contained in:
@@ -12,7 +12,7 @@ class GetAutoCompleteSuccess extends UIState {
|
||||
}
|
||||
|
||||
class GetAutoCompleteFailure extends FeatureFailure {
|
||||
final exception;
|
||||
final dynamic exception;
|
||||
|
||||
GetAutoCompleteFailure(this.exception);
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ class GetDeviceContactSuggestionsSuccess extends UIState {
|
||||
}
|
||||
|
||||
class GetDeviceContactSuggestionsFailure extends FeatureFailure {
|
||||
final exception;
|
||||
final dynamic exception;
|
||||
|
||||
GetDeviceContactSuggestionsFailure(this.exception);
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ class SaveEmailAddressSuccess extends UIState {
|
||||
}
|
||||
|
||||
class SaveEmailAddressFailure extends FeatureFailure {
|
||||
final exception;
|
||||
final dynamic exception;
|
||||
|
||||
SaveEmailAddressFailure(this.exception);
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ class SaveEmailAsDraftsSuccess extends UIState {
|
||||
}
|
||||
|
||||
class SaveEmailAsDraftsFailure extends FeatureFailure {
|
||||
final exception;
|
||||
final dynamic exception;
|
||||
|
||||
SaveEmailAsDraftsFailure(this.exception);
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ class SendEmailSuccess extends UIState {
|
||||
}
|
||||
|
||||
class SendEmailFailure extends FeatureFailure {
|
||||
final exception;
|
||||
final dynamic exception;
|
||||
|
||||
SendEmailFailure(this.exception);
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ class UpdateEmailDraftsSuccess extends UIState {
|
||||
}
|
||||
|
||||
class UpdateEmailDraftsFailure extends FeatureFailure {
|
||||
final exception;
|
||||
final dynamic exception;
|
||||
|
||||
UpdateEmailDraftsFailure(this.exception);
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ class UploadAttachmentSuccess extends UIState {
|
||||
}
|
||||
|
||||
class UploadAttachmentFailure extends FeatureFailure {
|
||||
final exception;
|
||||
final dynamic exception;
|
||||
|
||||
UploadAttachmentFailure(this.exception);
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ class UploadMultipleAttachmentInteractor {
|
||||
final listResultSuccess = listResult.where((either) => either.isRight()).toList();
|
||||
if (listResultSuccess.length == listResult.length) {
|
||||
yield Right<Failure, Success>(UploadMultipleAttachmentAllSuccess(listResultSuccess));
|
||||
} else if (listResultSuccess.length == 0) {
|
||||
} else if (listResultSuccess.isEmpty) {
|
||||
yield Left<Failure, Success>(UploadMultipleAttachmentAllFailure(listResult));
|
||||
} else {
|
||||
yield Right<Failure, Success>(UploadMultipleAttachmentHasSomeFailure(listResultSuccess));
|
||||
|
||||
Reference in New Issue
Block a user