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

Refactor changes and code smells #1762

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

abdelrahmanassem
Copy link

Refactor changes and code smells listed :

  1. long method
  2. primitive obsession
  3. code duplication
  4. unnecessary comments

@pivotal-cla
Copy link

@abdelrahmanassem Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

Choose a reason for hiding this comment

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

owner.getPet(petId) in line 79 need to be updated to use the findPet method instead

if (id != null) {
return pet.getId().equals(id);
}
return pet.getName().equalsIgnoreCase(name);
Copy link
Contributor

Choose a reason for hiding this comment

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

That's mean the pet name is unique, but is it ok?

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.

4 participants