Skip to content

Commit 5db0abb

Browse files
committed
fix(archive_local_ads): remove explicit null assignment
- Remove unnecessary null assignment for 'exception' and 'restoredLocalAd' - Simplify state copying by removing redundant code
1 parent a034f5b commit 5db0abb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/local_ads_management/bloc/archive_local_ads/archive_local_ads_state.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,8 @@ class ArchiveLocalAdsState extends Equatable {
143143
videoAds: videoAds ?? this.videoAds,
144144
videoAdsCursor: videoAdsCursor ?? this.videoAdsCursor,
145145
videoAdsHasMore: videoAdsHasMore ?? this.videoAdsHasMore,
146-
exception: exception, // Explicitly set to null if not provided
147-
restoredLocalAd:
148-
restoredLocalAd, // Explicitly set to null if not provided
146+
exception: exception,
147+
restoredLocalAd: restoredLocalAd,
149148
lastPendingDeletionId: lastPendingDeletionId,
150149
snackbarLocalAdTitle: snackbarLocalAdTitle,
151150
);

0 commit comments

Comments
 (0)