Skip to content

Commit 84b9f54

Browse files
committed
Fix compiler crash
1 parent e5164a6 commit 84b9f54

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/AndroidOS/AndroidAPI.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ public extension AndroidAPI {
2626

2727
/// Available since API level 24. Returns the API level of the device we're actually running on.
2828
static var current: AndroidAPI {
29-
get throws(Throwable) {
29+
get throws {
3030
AndroidAPI(rawValue: try deviceAPILevel())
3131
}
3232
}
3333
}
3434

3535
internal extension AndroidAPI {
3636

37-
static func deviceAPILevel() throws(Throwable) -> Int32 {
37+
static func deviceAPILevel() throws -> Int32 {
3838
#if os(Android) && canImport(AndroidNDK)
3939
try ndkValue().get()
4040
#else
@@ -43,7 +43,7 @@ internal extension AndroidAPI {
4343
}
4444

4545
/// `Build.VERSION.SDK_INT`
46-
static func jniValue() throws(Throwable) -> Int32 {
46+
static func jniValue() throws -> Int32 {
4747
do {
4848
let javaClass = try JavaClass<Build.VERSION>.init()
4949
return javaClass.SDK_INT

0 commit comments

Comments
 (0)