Skip to content

Commit

Permalink
fix: do not show trailing slash when link is OK
Browse files Browse the repository at this point in the history
  • Loading branch information
Armin Becher authored and Armin Becher committed Feb 8, 2025
1 parent ff026dc commit 2f8efd0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,10 @@ fn print_helper(
msg: &str,
error_channel: bool,
) {
let link_str = format!("[{:^4}] {} - {}", status_code, link.source_str(), msg);
let mut link_str = format!("[{:^4}] {}", status_code, link.source_str());
if !msg.is_empty() {
link_str += &format!(" - {}", msg);
}
if error_channel {
eprintln!("{}", link_str);
} else {
Expand Down

0 comments on commit 2f8efd0

Please sign in to comment.