Skip to content

Commit

Permalink
tidy code
Browse files Browse the repository at this point in the history
Signed-off-by: tison <[email protected]>
  • Loading branch information
tisonkun committed Aug 10, 2024
1 parent a599e65 commit 2894986
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/append/rolling_file/rolling.rs
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,7 @@ impl State {

fn should_rollover_on_date(&self, date: OffsetDateTime) -> bool {
self.next_date_timestamp
.map(|ts| date.unix_timestamp() as usize >= ts)
.unwrap_or(false)
.is_some_and(|ts| date.unix_timestamp() as usize >= ts)
}

fn should_rollover_on_size(&self) -> bool {
Expand Down

0 comments on commit 2894986

Please sign in to comment.