fix(mcp): collapse SSE message match arm to satisfy clippy

The "message" arm wrapped its work in `if !data.trim().is_empty()`,
which clippy::collapsible_match flags. Move the predicate into a
match guard so the inner branch is the only body.

No behavior change.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Hunter Bown
2026-05-09 14:43:44 -05:00
parent c916960b23
commit 8bf7bf8ba6
+2 -4
View File
@@ -528,10 +528,8 @@ impl SseTransport {
"endpoint" => {
let _ = tx.send(SseInbound::Endpoint(data));
}
"message" => {
if !data.trim().is_empty() {
let _ = tx.send(SseInbound::Message(data.into_bytes()));
}
"message" if !data.trim().is_empty() => {
let _ = tx.send(SseInbound::Message(data.into_bytes()));
}
_ => {}
}