chore: add empty line to display hardforks (#15845)

This commit is contained in:
Matthias Seitz
2025-04-22 22:55:53 +02:00
committed by GitHub
parent a1bbce8a47
commit a135c4b72c

View File

@@ -123,7 +123,12 @@ impl core::fmt::Display for DisplayHardforks {
f,
)?;
if !self.with_merge.is_empty() {
if self.with_merge.is_empty() {
if !self.post_merge.is_empty() {
// need an extra line here in case we don't have a merge block (optimism)
writeln!(f)?;
}
} else {
format("Merge hard forks", &self.with_merge, self.post_merge.is_empty(), f)?;
}