Skip to content

Commit

Permalink
refactor(help): Remove dead code
Browse files Browse the repository at this point in the history
`longest` is always the same or longer than the `sc_str.display_width`
  • Loading branch information
epage committed Nov 7, 2022
1 parent bc457b1 commit 539577d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/output/help_template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ impl<'cmd, 'writer> HelpTemplate<'cmd, 'writer> {
self.none(TAB);
self.writer.extend(sc_str.into_iter());
if !next_line_help {
self.spaces(width.max(longest + TAB_WIDTH) - width);
self.spaces(longest + TAB_WIDTH - width);
}
}
}
Expand Down

0 comments on commit 539577d

Please sign in to comment.