Skip to content

Commit dead0ba

Browse files
committed
Remove dead try-catch block logging bridge state
1 parent 2c41ef7 commit dead0ba

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

  • src/main/kotlin/com/github/grishberg/androidstudio/plugins

src/main/kotlin/com/github/grishberg/androidstudio/plugins/AdbWrapper.kt

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,7 @@ fun getDebugBridgeWithLogging(project: Project, logger: AppLogger): com.android.
8686

8787
logger.d("AndroidSdkUtils.getDebugBridge() returned: ${if (bridge != null) "NOT NULL (hash=${System.identityHashCode(bridge)})" else "NULL"}")
8888

89-
if (bridge != null) {
90-
logger.d("Bridge created, checking initial state...")
91-
try {
92-
val isConnected = bridge.isConnected
93-
logger.d("Bridge initial state: isConnected=$isConnected")
94-
} catch (t: Throwable) {
95-
logger.e("Failed to get bridge state", t)
96-
}
97-
} else {
89+
if (bridge == null) {
9890
logger.d("Bridge is NULL - possible causes:")
9991
logger.d(" 1. Android SDK not configured in project")
10092
logger.d(" 2. ADB not found at expected location")

0 commit comments

Comments
 (0)