Skip to content

Commit 8f87110

Browse files
feat: remove else block to improve readability
1 parent 36eafc3 commit 8f87110

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

.idea/artifacts/kotlin_sdk_jvm_0_4_0.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/commonMain/kotlin/io/modelcontextprotocol/kotlin/sdk/client/Client.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,10 @@ public open class Client(
103103
close()
104104
if (error !is CancellationException) {
105105
throw IllegalStateException("Error connecting to transport: ${error.message}")
106-
} else {
107-
throw error
108106
}
107+
108+
throw error
109+
109110
}
110111
}
111112

0 commit comments

Comments
 (0)