Skip to content

Commit dc37f97

Browse files
committed
clean
Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
1 parent d99df2b commit dc37f97

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mcp/src/main/java/io/modelcontextprotocol/client/transport/HttpClientSseClientTransport.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,13 +330,12 @@ protected Flux<ResponseSubscribers.SseResponseEvent> eventStream() {
330330
.GET()
331331
.build();
332332

333-
Flux<ResponseSubscribers.SseResponseEvent> bla = Flux.<ResponseEvent>create(sseSink -> this.httpClient
333+
return Flux.<ResponseEvent>create(sseSink -> this.httpClient
334334
.sendAsync(request, responseInfo -> ResponseSubscribers.sseToBodySubscriber(responseInfo, sseSink))
335335
.exceptionallyCompose(e -> {
336336
sseSink.error(e);
337337
return CompletableFuture.failedFuture(e);
338338
})).map(responseEvent -> (ResponseSubscribers.SseResponseEvent) responseEvent);
339-
return bla;
340339
}
341340

342341
@Override

0 commit comments

Comments
 (0)