Skip to content

Commit 0cf48d5

Browse files
jennantillajinliu9508
authored andcommitted
Update formatting to pass lint test
1 parent 22f5269 commit 0cf48d5

File tree

1 file changed

+4
-7
lines changed
  • OneSignalSDK/onesignal/core/src/main/java/com/onesignal/common/threading

1 file changed

+4
-7
lines changed

OneSignalSDK/onesignal/core/src/main/java/com/onesignal/common/threading/ThreadUtils.kt

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ fun suspendifyOnMain(block: suspend () -> Unit) {
4848
block()
4949
}
5050
}
51-
}
52-
catch (e: Exception) {
51+
} catch (e: Exception) {
5352
Logging.error("Exception on thread with switch to main", e)
5453
}
5554
}
@@ -70,8 +69,7 @@ fun suspendifyOnThread(
7069
runBlocking {
7170
block()
7271
}
73-
}
74-
catch (e: Exception) {
72+
} catch (e: Exception) {
7573
Logging.error("Exception on thread", e)
7674
}
7775
}
@@ -93,9 +91,8 @@ fun suspendifyOnThread(
9391
runBlocking {
9492
block()
9593
}
96-
}
97-
catch (e: Exception) {
98-
Logging.error("Exception on thread '${name}'", e)
94+
} catch (e: Exception) {
95+
Logging.error("Exception on thread '$name'", e)
9996
}
10097
}
10198
}

0 commit comments

Comments
 (0)