File tree Expand file tree Collapse file tree 2 files changed +4
-11
lines changed
kotlin-sdk-core/src/commonMain/kotlin/io/modelcontextprotocol/kotlin/sdk/shared Expand file tree Collapse file tree 2 files changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -132,11 +132,7 @@ public class RequestOptions(
132132
133133 other as RequestOptions
134134
135- return when {
136- onProgress != other.onProgress -> false
137- timeout != other.timeout -> false
138- else -> true
139- }
135+ return onProgress == other.onProgress && timeout == other.timeout
140136 }
141137
142138 override fun hashCode (): Int {
Original file line number Diff line number Diff line change @@ -33,12 +33,9 @@ public open class TransportSendOptions(
3333
3434 other as TransportSendOptions
3535
36- return when {
37- relatedRequestId != other.relatedRequestId -> false
38- resumptionToken != other.resumptionToken -> false
39- onResumptionToken != other.onResumptionToken -> false
40- else -> true
41- }
36+ return relatedRequestId == other.relatedRequestId &&
37+ resumptionToken == other.resumptionToken &&
38+ onResumptionToken == other.onResumptionToken
4239 }
4340
4441 override fun hashCode (): Int {
You can’t perform that action at this time.
0 commit comments