diff --git a/src/commands/logs.rs b/src/commands/logs.rs index 3a0979e..d3b7737 100644 --- a/src/commands/logs.rs +++ b/src/commands/logs.rs @@ -144,17 +144,13 @@ fn print_logs(entries: &[Entry], show_timestamp: bool) -> Option<&str> { continue; }; - match &log_entry.time { - Some(time) => { - if show_timestamp { - println!("[{time}] {log}"); - } else { - println!("{log}"); - } - - since = Some(time.as_str()); + if let Some(time) = &log_entry.time { + if show_timestamp { + println!("[{time}] {log}"); + } else { + println!("{log}"); } - None => (), + since = Some(time.as_str()); } } }