Skip to content

Commit

Permalink
refactor: remove unnecessary match
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenautumns committed Nov 4, 2024
1 parent 824ea7d commit 5180295
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions hypervisor/src/hypervisor/partition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -670,10 +670,7 @@ impl Partition {
/// the `timeout` parameter. Returns whether the periodic process exists
/// and was run.
pub fn run_periodic_process(&mut self, timeout: Timeout) -> TypedResult<bool> {
match self.run.unfreeze_periodic() {
Ok(true) => {}
other => return other,
}
self.run.unfreeze_periodic()?;

let mut poller = PeriodicPoller::new(&self.run)?;

Expand Down

0 comments on commit 5180295

Please sign in to comment.