refactor: replace unused exception variable with underscore

This commit is contained in:
Rsedp8 2025-05-24 16:38:25 +02:00
parent bb21e4bdcd
commit 69d5a2c51b
3 changed files with 5 additions and 5 deletions

View file

@ -49,7 +49,7 @@ class UploadCancelledTest {
fun setup() {
try {
Intents.init()
} catch (ex: IllegalStateException) {
} catch (_: IllegalStateException) {
}
device.unfreezeRotation()
device.setOrientationNatural()
@ -65,7 +65,7 @@ class UploadCancelledTest {
fun teardown() {
try {
Intents.release()
} catch (ex: IllegalStateException) {
} catch (_: IllegalStateException) {
}
}

View file

@ -71,7 +71,7 @@ class UploadTest {
fun setup() {
try {
Intents.init()
} catch (ex: IllegalStateException) {
} catch (_: IllegalStateException) {
}
UITestHelper.loginUser()
UITestHelper.skipWelcome()

View file

@ -22,9 +22,9 @@ class ExceptionAwareThreadPoolExecutor(
if (r.isDone) {
r.get()
}
} catch (e: CancellationException) {
} catch (_: CancellationException) {
// ignore
} catch (e: InterruptedException) {
} catch (_: InterruptedException) {
// ignore
} catch (e: ExecutionException) {
throwable = e.cause ?: e