Skip to content

Commit c1e72a3

Browse files
author
lemmih
committed
remove unnecessary parens
1 parent 8cec331 commit c1e72a3

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/tool/subcommands/archive_cmd.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -625,13 +625,12 @@ fn steps_in_range(
625625
}
626626

627627
fn epoch_to_date(genesis_timestamp: u64, epoch: ChainEpoch) -> anyhow::Result<String> {
628-
Ok(DateTime::from_timestamp(
629-
(genesis_timestamp as i64 + epoch * EPOCH_DURATION_SECONDS),
630-
0,
628+
Ok(
629+
DateTime::from_timestamp(genesis_timestamp as i64 + epoch * EPOCH_DURATION_SECONDS, 0)
630+
.unwrap_or_default()
631+
.format("%Y-%m-%d")
632+
.to_string(),
631633
)
632-
.unwrap_or_default()
633-
.format("%Y-%m-%d")
634-
.to_string())
635634
}
636635

637636
fn format_lite_snapshot(

0 commit comments

Comments
 (0)