File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
OneSignalSDK/onesignal/core/src/main/java/com/onesignal/common/threading Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -48,8 +48,7 @@ fun suspendifyOnMain(block: suspend () -> Unit) {
48
48
block()
49
49
}
50
50
}
51
- }
52
- catch (e: Exception ) {
51
+ } catch (e: Exception ) {
53
52
Logging .error(" Exception on thread with switch to main" , e)
54
53
}
55
54
}
@@ -70,8 +69,7 @@ fun suspendifyOnThread(
70
69
runBlocking {
71
70
block()
72
71
}
73
- }
74
- catch (e: Exception ) {
72
+ } catch (e: Exception ) {
75
73
Logging .error(" Exception on thread" , e)
76
74
}
77
75
}
@@ -93,9 +91,8 @@ fun suspendifyOnThread(
93
91
runBlocking {
94
92
block()
95
93
}
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)
99
96
}
100
97
}
101
98
}
You can’t perform that action at this time.
0 commit comments