From e4859f7dd33976d96f2a17f6e42604134f1c9619 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 2 May 2024 18:56:58 -0300 Subject: [PATCH] collapse else { if into else if --- src/lib.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 847bed5..40ce465 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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}")?; } } }