refactor(archived): change to match

This commit is contained in:
minish 2023-06-13 18:05:13 -04:00
parent 9e45783547
commit e6076e6beb
1 changed files with 6 additions and 7 deletions

View File

@ -138,14 +138,13 @@ impl Archive {
let entry = self.cache_table.get_mut(key); let entry = self.cache_table.get_mut(key);
if entry.is_some() { match entry {
let mut entry = entry.unwrap(); Some(entry) => {
entry.expiration_time = now + self.entry_lifetime;
entry.expiration_time = now + self.entry_lifetime; Some(())
}
return Some(()); None => None
} else {
return None;
} }
} }