Skip to content

Commit

Permalink
Replaced "ignore" with "_". (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
EranBoudjnah authored Oct 11, 2024
1 parent 391b04b commit c320920
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class UseCaseExecutor(
coroutineScope.launch {
try {
useCase.execute(value, onResult)
} catch (ignore: CancellationException) {
} catch (_: CancellationException) {
} catch (@Suppress("TooGenericExceptionCaught") throwable: Throwable) {
onException(
(throwable as? DomainException)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ fun doesNot(description: String, block: () -> Unit) {
try {
block()
error("Unexpected: $description")
} catch (ignore: AssertionFailedError) {
} catch (_: AssertionFailedError) {
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class ConnectionDataSourceImpl(
override fun observeIsConnected(): Flow<ConnectionStateDataModel> {
try {
connectivityManager.unregisterNetworkCallback(networkCallback)
} catch (ignore: IllegalArgumentException) {
} catch (_: IllegalArgumentException) {
}
connectivityManager.registerNetworkCallback(networkRequestProvider(), networkCallback)

Expand Down

0 comments on commit c320920

Please sign in to comment.