-
Notifications
You must be signed in to change notification settings - Fork 57
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
Bl/#2184 person enters body vehicle missing 4ci #2230
Conversation
…as vehicle from the list of current vehicles
@colinsheppard @wrashid please review |
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( |
There was a problem hiding this comment.
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...)
There was a problem hiding this 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
Closes #2184
This change is