Skip to content

Commit 69ff9fc

Browse files
committed
refactor(headlines-feed): simplify state management in CountriesFilterBloc
- Remove redundant error and clearFollowedCountriesError fields - Introduce clearError field for generic error clearing
1 parent e0d1fd1 commit 69ff9fc

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/headlines-feed/bloc/countries_filter_bloc.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,7 @@ class CountriesFilterBloc
123123
state.copyWith(
124124
followedCountriesStatus: CountriesFilterStatus.success,
125125
followedCountries: const [],
126-
error: const OperationFailedException(
127-
'No followed countries found.',
128-
),
129-
clearFollowedCountriesError: true,
126+
clearError: true,
130127
),
131128
);
132129
return;

0 commit comments

Comments
 (0)