Skip to content

Commit

Permalink
collapse else { if into else if
Browse files Browse the repository at this point in the history
  • Loading branch information
nico-abram committed May 2, 2024
1 parent 2216c64 commit e4859f7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -824,11 +824,9 @@ impl CollectionResults {
if displacement != 0 {
printed = true;
writeln!(w, "\t\t{symbol_name}+0x{displacement:X}")?;
} else {
if !symbol_name.is_empty() {
printed = true;
writeln!(w, "\t\t{symbol_name}")?;
}
} else if !symbol_name.is_empty() {
printed = true;
writeln!(w, "\t\t{symbol_name}")?;
}
}
}
Expand Down

0 comments on commit e4859f7

Please sign in to comment.