Detekt: enable rule exceptions.SwallowedException and fix existing issue.
This commit is contained in:
parent
d0df2cd088
commit
54e742075d
16 changed files with 20 additions and 20 deletions
|
|
@ -34,7 +34,7 @@ suspend fun awaitWithLatch(timeout: Duration = 300.milliseconds, block: (Complet
|
|||
withTimeout(timeout) {
|
||||
latch.also(block).await()
|
||||
}
|
||||
} catch (exception: TimeoutCancellationException) {
|
||||
} catch (_: TimeoutCancellationException) {
|
||||
latch.complete(Unit)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue