Skip to content

Commit

Permalink
uudoc: simplify generation of about text
Browse files Browse the repository at this point in the history
  • Loading branch information
cakebaker committed Feb 20, 2023
1 parent cc0a77d commit d9ca2b5
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/bin/uudoc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,15 +196,7 @@ impl<'a, 'b> MDWriter<'a, 'b> {
}

fn description(&mut self) -> io::Result<()> {
if let Some(after_help) = self.markdown_section("about") {
return writeln!(self.w, "\n\n{}", after_help);
}

if let Some(about) = self
.command
.get_long_about()
.or_else(|| self.command.get_about())
{
if let Some(about) = self.command.get_about() {
writeln!(self.w, "{}", about)
} else {
Ok(())
Expand Down

0 comments on commit d9ca2b5

Please sign in to comment.