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

CDPS-1112: Get military records #20

Merged
merged 3 commits into from
Jan 17, 2025
Merged

Conversation

davidatmoj
Copy link
Contributor

No description provided.

val rankSuffixPattern = Regex(rankSuffixList.joinToString("|"), RegexOption.IGNORE_CASE)

val mappedResponse = response.body?.militaryRecords?.map {
it.copy(
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we need the copy here since you're doing the replace in the DTO constructor?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops... yeah, I originally put the copy in then decided to change how I was doing it and thought I'd deleted that. Good spot.

@davidatmoj davidatmoj merged commit 7f4d2d1 into main Jan 17, 2025
6 checks passed
@davidatmoj davidatmoj deleted the CDPS-1112-get-military-records branch January 17, 2025 11:50
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.

2 participants