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

Fix accumulated papercuts #384

Merged
merged 4 commits into from
May 11, 2023
Merged

Fix accumulated papercuts #384

merged 4 commits into from
May 11, 2023

Conversation

mckern
Copy link
Contributor

@mckern mckern commented May 10, 2023

images (2)

So, chamber has accumulated a number of papercuts over the years: small things, easy to overlook but that sting in the moment. Nothing that's going to completely halt operation, but will annoy you (read: me, Joe Sportsbar Average User) when you touch them. Here's a swing at fixing a few of these up in the hopes of further improving future maintenance:

  • Improve test readability for cmd/find_test.go
  • Use contemporary go:build directives format instead of deprecated +build:
  • Remove legacy 3rd party error wrapping package and use contemporary stdlib error wrapping

@mckern mckern requested a review from a team as a code owner May 10, 2023 07:25
Declaring struct literals with ordered parameters is "fine" but it's
also brittle. We should use the struct field names to make intent
crystal-clear.
Not a functional fix, but `go fix` flagged and replaced it, and who am
I to argue with `go fix`?
The 3rd party package github.com/pkg/errors is no longer required to
wrap errors. This was handled programmatically by the tool
github.com/xdg-go/go-rewrap-errors and should be complete.
Copy link
Contributor

@alecjacobs5401 alecjacobs5401 left a comment

Choose a reason for hiding this comment

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

thank you for this cleanup!

@mckern mckern merged commit 6f02bdf into master May 11, 2023
@mckern mckern deleted the mckern/papercuts branch May 11, 2023 02:12
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.

None yet

2 participants