mirror of
https://github.com/fankes/ColorOSNotifyIcon.git
synced 2025-09-06 18:55:37 +08:00
Merge code
This commit is contained in:
@@ -67,6 +67,6 @@ inline fun safeOfNan(result: () -> Int) = safeOf(default = 0, result)
|
||||
*/
|
||||
inline fun <T> safeOf(default: T, result: () -> T) = try {
|
||||
result()
|
||||
} catch (t: Throwable) {
|
||||
} catch (_: Throwable) {
|
||||
default
|
||||
}
|
Reference in New Issue
Block a user