Skip to content

Commit

Permalink
Tiny cleanup: remove unnecessary result check (#6401)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgallagher authored Aug 21, 2024
1 parent 18ee283 commit d24003b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions nexus/src/app/background/tasks/blueprint_execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,9 @@ impl BlueprintExecutor {
Ok(RealizeBlueprintOutput { needs_saga_recovery }) => {
// If executing the blueprint requires activating the saga
// recovery background task, do that now.
if let Ok(output) = &result {
if output.needs_saga_recovery {
info!(&opctx.log, "activating saga recovery task");
self.saga_recovery.activate();
}
if needs_saga_recovery {
info!(&opctx.log, "activating saga recovery task");
self.saga_recovery.activate();
}

json!({
Expand Down

0 comments on commit d24003b

Please sign in to comment.