Skip to content

Commit 709eda4

Browse files
committed
Remove if to check functions field is empty
1 parent efb6b2e commit 709eda4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

crates/forge-runner/src/gas/report.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,8 @@ impl Display for ReportData {
117117
}
118118

119119
for (name, contract_info) in &self.0 {
120-
if !contract_info.functions.is_empty() {
121-
let table = format_table_output(contract_info, name);
122-
writeln!(f, "\n{table}")?;
123-
}
120+
let table = format_table_output(contract_info, name);
121+
writeln!(f, "\n{table}")?;
124122
}
125123
Ok(())
126124
}

0 commit comments

Comments
 (0)