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

refactoring #48

Merged
merged 3 commits into from
Dec 14, 2024
Merged

refactoring #48

merged 3 commits into from
Dec 14, 2024

Conversation

ccoVeille
Copy link
Owner

@ccoVeille ccoVeille commented Nov 17, 2024

  • chore: rewrite examples
  • chore: refactoring Number type is enough
  • chore: simplify code

This code is pretty similar to the one @ldemailly provided for
https://github.com/fortio/safecast

We worked at the same time on the same code, we came to distinct solutions.
His one was better and simpler than mine, so now I'm simply switching to
something highly inspired from his code.

@ccoVeille ccoVeille added the enhancement New feature or request label Nov 17, 2024
Copy link

codecov bot commented Nov 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (5153904) to head (aef85dd).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #48   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            3         3           
  Lines          185       120   -65     
=========================================
- Hits           185       120   -65     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ccoVeille ccoVeille force-pushed the refactoring branch 2 times, most recently from d2edce2 to dfb2d31 Compare November 17, 2024 23:58
ccoVeille and others added 3 commits December 14, 2024 00:40
Providing the value and error would be easier to test
One code to rule them all.

This code is pretty similar to the one @ldemailly provided for
https://github.com/fortio/safecast

We worked at the same time on the same code, we came to distinct solutions.
His one was better and simpler than mine, so now I'm simply switching to
something highly inspired from his code.

Co-Authored-By: Laurent Demailly <[email protected]>
@ccoVeille ccoVeille merged commit cbcae8f into main Dec 14, 2024
3 checks passed
@ccoVeille ccoVeille deleted the refactoring branch December 14, 2024 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants