Skip to content

HomeAnimal Clinic - version 1#62

Open
AlinaKulishdp wants to merge 12 commits intodemmy:masterfrom
AlinaKulishdp:HomeAnimals
Open

HomeAnimal Clinic - version 1#62
AlinaKulishdp wants to merge 12 commits intodemmy:masterfrom
AlinaKulishdp:HomeAnimals

Conversation

@AlinaKulishdp
Copy link
Copy Markdown
Contributor

Program works, but code of class ConsoleHelper doesn't optimal

Comment thread VeterinaryAlina/AnimalFactory.cs Outdated
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

  1. Multiple returns from the metod aren't a good practice
  2. put "case ...:" on different line
  3. use break

Comment thread VeterinaryAlina/ConsoleHelper.cs Outdated
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

please get rid of multiple returns

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