Skip to content

Commit 096f070

Browse files
committed
style(codex): format utc path date
1 parent ff9a5ac commit 096f070

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

‎rust/adapters/codex/src/paths.rs‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,7 @@ impl CodexFileEligibility {
171171
fn utc_path_date(millis: i64) -> Option<Date> {
172172
let timestamp = jiff::Timestamp::from_millisecond(millis).ok()?;
173173
let zoned = timestamp.to_zoned(JiffTimeZone::get("UTC").ok()?);
174-
Date::new(
175-
zoned.year(),
176-
zoned.month(),
177-
zoned.day(),
178-
)
179-
.ok()
174+
Date::new(zoned.year(), zoned.month(), zoned.day()).ok()
180175
}
181176

182177
fn file_modified_millis(path: &Path) -> Option<i64> {

0 commit comments

Comments
 (0)