diff --git a/core/data/src/main/java/com/google/samples/apps/nowinandroid/core/data/repository/OfflineFirstNewsRepository.kt b/core/data/src/main/java/com/google/samples/apps/nowinandroid/core/data/repository/OfflineFirstNewsRepository.kt index d9417d69b..bd6ed11b4 100644 --- a/core/data/src/main/java/com/google/samples/apps/nowinandroid/core/data/repository/OfflineFirstNewsRepository.kt +++ b/core/data/src/main/java/com/google/samples/apps/nowinandroid/core/data/repository/OfflineFirstNewsRepository.kt @@ -129,9 +129,11 @@ class OfflineFirstNewsRepository @Inject constructor( .first() .map(PopulatedNewsResource::asExternalModel) - if (addedNewsResources.isNotEmpty()) notifier.postNewsNotifications( - newsResources = addedNewsResources, - ) + if (addedNewsResources.isNotEmpty()) { + notifier.postNewsNotifications( + newsResources = addedNewsResources, + ) + } } }, )