diff --git a/crates/memoryd/src/index.rs b/crates/memoryd/src/index.rs index e714585..e3d7f6b 100644 --- a/crates/memoryd/src/index.rs +++ b/crates/memoryd/src/index.rs @@ -221,15 +221,13 @@ impl Index { return Ok(()); } match record { - LogRecord::User { time, content } => { - if !content.trim().is_empty() { - let src = Source { - time: time.to_rfc3339(), - role: "owner".to_string(), - ..base.clone() - }; - self.add(content, &src)?; - } + LogRecord::User { time, content } if !content.trim().is_empty() => { + let src = Source { + time: time.to_rfc3339(), + role: "owner".to_string(), + ..base.clone() + }; + self.add(content, &src)?; } LogRecord::Assistant { time,