Skip to content

Commit a818e34

Browse files
committed
Add case
1 parent 8f83815 commit a818e34

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

  • crates/vespertide-cli/src/commands

crates/vespertide-cli/src/commands/log.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,7 @@ pub fn cmd_log() -> Result<()> {
2727
plan.version.to_string().bright_magenta().bold()
2828
);
2929
if let Some(created) = &plan.created_at {
30-
println!(
31-
" {} {}",
32-
"Created at:".bright_cyan(),
33-
created.bright_white()
34-
);
30+
println!(" {} {}", "Created at:".bright_cyan(), created.bright_white());
3531
}
3632
if let Some(comment) = &plan.comment {
3733
println!(" {} {}", "Comment:".bright_cyan(), comment.bright_white());
@@ -56,9 +52,7 @@ pub fn cmd_log() -> Result<()> {
5652
(i + 1).to_string().bright_magenta().bold(),
5753
q.sql().trim().bright_white()
5854
);
59-
if !q.binds().is_empty() {
60-
println!(" {} {:?}", "binds:".bright_cyan(), q.binds());
61-
}
55+
println!(" {} {:?}", "binds:".bright_cyan(), q.binds());
6256
}
6357
println!();
6458
}

0 commit comments

Comments
 (0)