refactor(archived): change to match
This commit is contained in:
parent
9e45783547
commit
e6076e6beb
|
@ -138,14 +138,13 @@ impl Archive {
|
|||
|
||||
let entry = self.cache_table.get_mut(key);
|
||||
|
||||
if entry.is_some() {
|
||||
let mut entry = entry.unwrap();
|
||||
match entry {
|
||||
Some(entry) => {
|
||||
entry.expiration_time = now + self.entry_lifetime;
|
||||
|
||||
entry.expiration_time = now + self.entry_lifetime;
|
||||
|
||||
return Some(());
|
||||
} else {
|
||||
return None;
|
||||
Some(())
|
||||
}
|
||||
None => None
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue