diff --git a/deployer/src/persistence/log.rs b/deployer/src/persistence/log.rs index f5c17e22aa..7613d9b3d7 100644 --- a/deployer/src/persistence/log.rs +++ b/deployer/src/persistence/log.rs @@ -100,14 +100,9 @@ fn extract_message(fields: &Value) -> Option { return Some(message.as_str()?.to_string()); } - if let Some(message) = map.get("message") { - match message { - Value::Object(message_object) => { - if let Some(rendered) = message_object.get("rendered") { - return Some(rendered.as_str()?.to_string()); - } - } - _ => {} + if let Some(Value::Object(message_object)) = map.get("message") { + if let Some(rendered) = message_object.get("rendered") { + return Some(rendered.as_str()?.to_string()); } } }