Skip to content

Commit a30876f

Browse files
committed
small cleanup
1 parent cd16758 commit a30876f

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/handler/mod.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,8 @@ pub(crate) async fn call_followup_lifecycle_script<T: Debug>(
3535
let command_result =
3636
call_lifecycle_script(deploy_base_directory, lifecycle_event_name, state).await?;
3737

38-
if previous_result.is_err() {
39-
Err(previous_result.unwrap_err())
40-
} else {
41-
Ok(command_result)
42-
}
38+
previous_result?;
39+
Ok(command_result)
4340
}
4441

4542
pub(crate) async fn call_and_aggregate_lifecycle_script(

0 commit comments

Comments
 (0)