Skip to content

Commit

Permalink
review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gurinderu committed Jul 30, 2024
1 parent dff8316 commit ddcfbf4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/workers/src/workers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,6 @@ impl Workers {
.ok_or_else(|| WorkersError::WrongAssignment)?
};


let file_name = &image
.file_name()
.ok_or_else(|| WorkersError::VMImageNotFile {
Expand Down Expand Up @@ -711,7 +710,7 @@ impl Workers {
let guard = self.worker_infos.read();
let worker_info = guard
.get(&worker_id)
.ok_or(WorkersError::WorkerNotFound(worker_id))?;
.ok_or_else(|| WorkersError::WorkerNotFound(worker_id))?;

modify(worker_info);

Expand Down

0 comments on commit ddcfbf4

Please sign in to comment.