Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use next_node blocks in check-uk-visa #2073

Merged
merged 8 commits into from
Nov 12, 2015

Conversation

chrisroos
Copy link
Contributor

This supersedes PR #2066 now that I've rebased on master. I've left the old PR so that we retain comments.

Expected observable changes

  • None

Note the three sets of "rules" in the `next_node` block. I've had to split it
like this to replicate the existing behaviour. Splitting the rules like this has
meant that I've had to use `next` to return early from the `next_node` block in
the first `case` statement, and second `if` statement.
I've used `next :outcome_visit_waiver` to exit the block early if
`passport_country == 'taiwan'`. This is to avoid having to nest the following
`case` statement in an `else` statement.
chrisroos added a commit that referenced this pull request Nov 12, 2015
…uk-visa

Use next node blocks in check uk visa
@chrisroos chrisroos merged commit 449954d into master Nov 12, 2015
@chrisroos chrisroos deleted the use-next-node-blocks-in-check-uk-visa branch November 12, 2015 11:12
@chrisroos chrisroos changed the title Use next node blocks in check uk visa Use next_node blocks in check-uk-visa Nov 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant