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

Bl/#2184 person enters body vehicle missing 4ci #2230

Merged

Conversation

bhavyalatha26
Copy link
Collaborator

@bhavyalatha26 bhavyalatha26 commented Oct 17, 2019

Closes #2184

This change is Reviewable

@bhavyalatha26
Copy link
Collaborator Author

@colinsheppard @wrashid please review

@bhavyalatha26
Copy link
Collaborator Author

test!

@@ -662,11 +662,22 @@ class PersonAgent(
netTripCosts // Again, includes tolls but "net" here means actual money paid by the person
)
)
var dataForNextLegOrActivity = data.copy(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than a var, how about a val that better illustrates this anyway:

val dataForNextLegOrActivity = if(...)
    //stuff
    data.copy(...)
else data.copy(...default...)

Copy link
Collaborator

@JustinPihony JustinPihony left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor addition to help with intent and put a bit more scala-esque. Otherwise LGTM as long as the tests prove this to be the correct fix

@bhavyalatha26 bhavyalatha26 merged commit dfa47ed into develop Dec 30, 2019
@bhavyalatha26 bhavyalatha26 deleted the bl/#2184-person-enters-body-vehicle-missing-4ci branch December 30, 2019 16:07
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.

person enters body vehicle sometimes missing
3 participants