Fix clippy release event match

This commit is contained in:
Sam Valladares 2026-05-24 16:27:48 -05:00
parent 3c913f9942
commit c4e90f7f4a

View file

@ -1210,22 +1210,21 @@ impl McpServer {
.unwrap_or("")
.to_string();
match action {
"delete" | "purge" => {
"delete" | "purge"
if result
.get("success")
.and_then(|value| value.as_bool())
.unwrap_or(false)
{
let node_id = result
.get("nodeId")
.and_then(|value| value.as_str())
.unwrap_or(&id)
.to_string();
self.emit(VestigeEvent::MemoryDeleted {
id: node_id,
timestamp: now,
});
}
.unwrap_or(false) =>
{
let node_id = result
.get("nodeId")
.and_then(|value| value.as_str())
.unwrap_or(&id)
.to_string();
self.emit(VestigeEvent::MemoryDeleted {
id: node_id,
timestamp: now,
});
}
"promote" => {
let retention = result