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

Minor changes with code optimization, enhancement, and better handling. #4073

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

arth-1
Copy link
Contributor

@arth-1 arth-1 commented Nov 23, 2024

  1. minor improvements in updatePluginObj by categorizing everything together which would make for better maintainable code and more readable and also ensured that the structure existed
  2. minor changes in rationalSum and mixedNumber function with code improvement

These changes are not necessary but while working on other issues i figured that it could be good improvement.

Changes Made-

Added logic to handle non-negative pickup values and support "faux pickups" like 1/3.
Ensured notationPickup is called after setting the pickup value.

Validated the pickup value before passing it to MeterActions.setPickup to prevent errors.

Added input validation for pickup values in flow, ensuring only valid values are processed.
1. made the updatePluginObj code shorter and combined categories making it easier to maintain in the long term, also ensured that the structure exists

2. minor improvements in mixedNumber function
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