Skip to content

Commit c9d7d74

Browse files
committed
chore: clear useless code
1 parent d9a4688 commit c9d7d74

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

app/src/main/kotlin/li/songe/gkd/shizuku/ProxyUiAutomationConnection.kt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,10 @@ class ProxyUiAutomationConnection : IUiAutomationConnection.Stub() {
137137
}
138138
}
139139
} catch (re: RemoteException) {
140-
re.rethrowAsRuntimeException()
140+
throw re.rethrowAsRuntimeException()
141141
} finally {
142142
restoreCallingIdentity(identity)
143143
}
144-
return null
145144
}
146145

147146
@RequiresApi(Build.VERSION_CODES.UPSIDE_DOWN_CAKE)
@@ -161,7 +160,7 @@ class ProxyUiAutomationConnection : IUiAutomationConnection.Stub() {
161160
.build()
162161
mWindowManager.captureDisplay(DEFAULT_DISPLAY, captureArgs, listener)
163162
} catch (re: RemoteException) {
164-
re.rethrowAsRuntimeException()
163+
throw re.rethrowAsRuntimeException()
165164
} finally {
166165
restoreCallingIdentity(identity)
167166
}
@@ -186,7 +185,7 @@ class ProxyUiAutomationConnection : IUiAutomationConnection.Stub() {
186185
.build()
187186
mWindowManager.captureDisplay(displayId, captureArgs, listener)
188187
} catch (re: RemoteException) {
189-
re.rethrowAsRuntimeException()
188+
throw re.rethrowAsRuntimeException()
190189
} finally {
191190
restoreCallingIdentity(identity)
192191
}

0 commit comments

Comments
 (0)