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(backends/mock/factory): replace long if statements with dict #304

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

Conversation

DavidRomanovizc
Copy link
Contributor

What was wrong?

The code had multiple long if-else statements, making it repetitive and hard to read.

How was it fixed?

Replaced the if-else statements with a dictionary of default values. This simplifies the logic and improves readability.

Todo:

  • Clean up commit history
  • Add or update documentation related to these changes
  • Add entry to the release notes

Cute Animal Picture

image

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.

1 participant