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 errcheck in ./common/archiver/ #3744

Merged
merged 1 commit into from
Dec 21, 2022
Merged

Conversation

MichaelSnowden
Copy link
Contributor

What changed?
^

Why?
For code quality

How did you test it?
Reran errcheck

Potential risks
The listFiles method of our file store might start failing

Is hotfix candidate?
No

@MichaelSnowden MichaelSnowden requested a review from a team as a code owner December 21, 2022 01:08
@@ -125,15 +126,16 @@ func (s *storageWrapper) Exist(ctx context.Context, URI archiver.URI, fileName s
}

// Get retrieve a file
func (s *storageWrapper) Get(ctx context.Context, URI archiver.URI, fileName string) ([]byte, error) {
func (s *storageWrapper) Get(ctx context.Context, URI archiver.URI, fileName string) (bytes []byte, err error) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
func (s *storageWrapper) Get(ctx context.Context, URI archiver.URI, fileName string) (bytes []byte, err error) {
func (s *storageWrapper) Get(ctx context.Context, URI archiver.URI, fileName string) (fileContent []byte, err error) {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed, thanks!

@MichaelSnowden MichaelSnowden force-pushed the errcheck/common/archiver branch from 38a0145 to 04bef26 Compare December 21, 2022 20:21
@MichaelSnowden MichaelSnowden enabled auto-merge (squash) December 21, 2022 20:21
@MichaelSnowden MichaelSnowden merged commit 957cfa4 into master Dec 21, 2022
@MichaelSnowden MichaelSnowden deleted the errcheck/common/archiver branch December 21, 2022 21:00
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.

2 participants