Skip to content

Commit def5c4e

Browse files
authored
Update ConnectivityManagerNetworkMonitor.kt
1 parent 76c249a commit def5c4e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

core/data/src/main/java/com/google/samples/apps/nowinandroid/core/data/util/ConnectivityManagerNetworkMonitor.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ class ConnectivityManagerNetworkMonitor @Inject constructor(
3737
) : NetworkMonitor {
3838
override val isOnline: Flow<Boolean> = callbackFlow {
3939
val connectivityManager = context.getSystemService<ConnectivityManager>()
40-
?: run {
41-
channel.trySend(false)
42-
channel.close()
43-
return@callbackFlow
44-
}
40+
?: run {
41+
channel.trySend(false)
42+
channel.close()
43+
return@callbackFlow
44+
}
4545

4646
/**
4747
* The callback's methods are invoked on changes to *any* network, not just the active

0 commit comments

Comments
 (0)