Skip to content

Commit

Permalink
Add has_current_step_result method to Constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoskal committed Nov 7, 2024
1 parent 0a968f7 commit 1108f6e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions parser/src/constraint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ impl Constraint {
&self.last_res
}

pub fn has_current_step_result(&self) -> bool {
self.step_arg.is_none()
}

fn res_commit_result(&mut self) -> Result<CommitResult> {
Ok(CommitResult::from_step_result(&self.last_res))
}
Expand Down

0 comments on commit 1108f6e

Please sign in to comment.