Skip to content

Commit

Permalink
remove unnecessary negation (clippy::if_not_else)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel.eades authored and Byron committed Aug 20, 2024
1 parent 820b661 commit 5745ce5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -403,12 +403,12 @@ where
}
CodeBlock(CodeBlockKind::Fenced(info)) => {
state.is_in_code_block = true;
let s = if !consumed_newlines {
let s = if consumed_newlines {
Ok(())
} else {
formatter
.write_char('\n')
.and_then(|()| padding(formatter, &state.padding))
} else {
Ok(())
};

s.and_then(|()| {
Expand Down

0 comments on commit 5745ce5

Please sign in to comment.