File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
3535internal 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
You can’t perform that action at this time.
0 commit comments