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

Backend: carry tracker cleanup #2911

Merged
merged 7 commits into from
Nov 24, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
detekt v2
  • Loading branch information
hannibal002 committed Nov 24, 2024
commit c0a835ebaf29853abc4325a38a6ebd1fac0d1a4f
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,10 @@ object CarryTracker {
}

private fun getCustomer(customerName: String): Customer = customers.find {
it.name.equals(customerName, ignoreCase = true)
} ?: Customer(customerName).also {
customers.add(it)
}
it.name.equals(customerName, ignoreCase = true)
} ?: Customer(customerName).also {
customers.add(it)
}

private fun createDisplay(
carry: Carry,
Expand Down
Loading