@@ -153,12 +153,7 @@ class AccountBloc extends Bloc<AccountEvent, AccountState> {
153153 _logger.severe (
154154 'Failed to create default preferences with HtHttpException: $e ' ,
155155 );
156- emit (
157- state.copyWith (
158- status: AccountStatus .failure,
159- error: e,
160- ),
161- );
156+ emit (state.copyWith (status: AccountStatus .failure, error: e));
162157 } catch (e, st) {
163158 _logger.severe (
164159 'Failed to create default preferences with unexpected error: $e ' ,
@@ -178,9 +173,7 @@ class AccountBloc extends Bloc<AccountEvent, AccountState> {
178173 _logger.severe (
179174 'AccountLoadUserPreferences failed with HtHttpException: $e ' ,
180175 );
181- emit (
182- state.copyWith (status: AccountStatus .failure, error: e),
183- );
176+ emit (state.copyWith (status: AccountStatus .failure, error: e));
184177 } catch (e, st) {
185178 _logger.severe (
186179 'AccountLoadUserPreferences failed with unexpected error: $e ' ,
@@ -190,9 +183,7 @@ class AccountBloc extends Bloc<AccountEvent, AccountState> {
190183 emit (
191184 state.copyWith (
192185 status: AccountStatus .failure,
193- error: OperationFailedException (
194- 'An unexpected error occurred: $e ' ,
195- ),
186+ error: OperationFailedException ('An unexpected error occurred: $e ' ),
196187 ),
197188 );
198189 }
@@ -240,9 +231,7 @@ class AccountBloc extends Bloc<AccountEvent, AccountState> {
240231 _logger.severe (
241232 'AccountSaveHeadlineToggled failed with HtHttpException: $e ' ,
242233 );
243- emit (
244- state.copyWith (status: AccountStatus .failure, error: e),
245- );
234+ emit (state.copyWith (status: AccountStatus .failure, error: e));
246235 } catch (e, st) {
247236 _logger.severe (
248237 'AccountSaveHeadlineToggled failed with unexpected error: $e ' ,
@@ -275,7 +264,7 @@ class AccountBloc extends Bloc<AccountEvent, AccountState> {
275264
276265 updatedFollowedTopics = isCurrentlyFollowed
277266 ? (List .from (currentPrefs.followedTopics)
278- ..removeWhere ((t) => t.id == event.topic.id))
267+ ..removeWhere ((t) => t.id == event.topic.id))
279268 : (List .from (currentPrefs.followedTopics)..add (event.topic));
280269
281270 final updatedPrefs = currentPrefs.copyWith (
@@ -299,9 +288,7 @@ class AccountBloc extends Bloc<AccountEvent, AccountState> {
299288 _logger.severe (
300289 'AccountFollowTopicToggled failed with HtHttpException: $e ' ,
301290 );
302- emit (
303- state.copyWith (status: AccountStatus .failure, error: e),
304- );
291+ emit (state.copyWith (status: AccountStatus .failure, error: e));
305292 } catch (e, st) {
306293 _logger.severe (
307294 'AccountFollowTopicToggled failed with unexpected error: $e ' ,
@@ -361,9 +348,7 @@ class AccountBloc extends Bloc<AccountEvent, AccountState> {
361348 _logger.severe (
362349 'AccountFollowSourceToggled failed with HtHttpException: $e ' ,
363350 );
364- emit (
365- state.copyWith (status: AccountStatus .failure, error: e),
366- );
351+ emit (state.copyWith (status: AccountStatus .failure, error: e));
367352 } catch (e, st) {
368353 _logger.severe (
369354 'AccountFollowSourceToggled failed with unexpected error: $e ' ,
@@ -411,9 +396,7 @@ class AccountBloc extends Bloc<AccountEvent, AccountState> {
411396 _logger.severe (
412397 'AccountClearUserPreferences failed with HtHttpException: $e ' ,
413398 );
414- emit (
415- state.copyWith (status: AccountStatus .failure, error: e),
416- );
399+ emit (state.copyWith (status: AccountStatus .failure, error: e));
417400 } catch (e, st) {
418401 _logger.severe (
419402 'AccountClearUserPreferences failed with unexpected error: $e ' ,
0 commit comments