Skip to content

Commit

Permalink
address review feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Rajat Jindal <[email protected]>
  • Loading branch information
rajatjindal committed Oct 31, 2023
1 parent ef05578 commit 69990ed
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/commands/logs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
}
Expand Down

0 comments on commit 69990ed

Please sign in to comment.