Skip to content
This repository was archived by the owner on Sep 21, 2023. It is now read-only.

Commit 393e3e4

Browse files
committed
fix: do not output double newline when version subcommand is used
The file with `git describe` output already contains a newline.
1 parent 1f85a13 commit 393e3e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ async fn main() -> anyhow::Result<()> {
115115
}
116116
Err(_) => println!("Bot not configured yet, start the bot first."),
117117
},
118-
BotActions::Version => println!("{}", get_version().await?),
118+
BotActions::Version => print!("{}", get_version().await?),
119119
BotActions::Start => {
120120
bot.start().await;
121121
signal::ctrl_c().await?;

0 commit comments

Comments
 (0)