Skip to content

Conversation

@mmorel-35
Copy link
Contributor

Description

remove unused-parameter exclusion and fixes it with underscore field naming

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
_ = contentID
func (c passthroughContentCache) Close(_ context.Context) {}

func (c passthroughContentCache) GetContent(ctx context.Context, _ string, blobID blob.ID, offset, length int64, output *gather.WriteBuffer) error {
Copy link
Collaborator

Choose a reason for hiding this comment

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

The previous form is preferred because it explicitly calls out what that parameter was supposed to be.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@mmorel-35 My comment above was ambiguous.

The comment was referring only to the change for the contentID parameter.
And it was NOT referring to other changes in this PR, such as the ones for the ctx parameter.

@mmorel-35 mmorel-35 closed this Apr 26, 2025
@mmorel-35 mmorel-35 deleted the revive/unused-parameter branch April 26, 2025 06:09
@julio-lopez
Copy link
Collaborator

Thanks @mmorel-35
Changes merged in #4530

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