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

chore: clean up code/comments #1

Merged
merged 1 commit into from
Aug 9, 2023
Merged

chore: clean up code/comments #1

merged 1 commit into from
Aug 9, 2023

Conversation

technicallyty
Copy link
Contributor

  • removes unused code
  • refactors the Config struct to remove the thing we are configuring (bit of an anti-pattern)
  • removes the Must utility (its generally not advised to make assumptions in Go libraries about how people want to handle their errors)
  • clean up some comments

@@ -1,69 +0,0 @@
package utils
Copy link
Contributor

Choose a reason for hiding this comment

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

looks good but didn't scott mention something about him creating this decimal library and he wanted someone to review it? are we upstreaming this to cardinal or just getting rid of it completely? what was it used for before?

Copy link
Member

@smsunarto smsunarto Aug 9, 2023

Choose a reason for hiding this comment

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

yeah we should upstream something like this to cardinal lib. we need deterministic floating point lib

@smsunarto smsunarto merged commit 5c9ca2d into main Aug 9, 2023
2 checks passed
@technicallyty technicallyty deleted the tyler/go-cleanups branch August 9, 2023 21:15
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