Skip to content

Marcus Ikdal#81

Open
Marcus0410 wants to merge 2 commits intoboolean-uk:mainfrom
Marcus0410:main
Open

Marcus Ikdal#81
Marcus0410 wants to merge 2 commits intoboolean-uk:mainfrom
Marcus0410:main

Conversation

@Marcus0410
Copy link

No description provided.


Product update(int id, Product updated) {
Product product = getProduct(id);
if (product != null) {

Choose a reason for hiding this comment

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

Nested code is quite hard to read, consider splitting out the conditional checks into their own private methods

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