Skip to content

dev: remove unused ctx parameter from Printer #3761

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

Merged
merged 1 commit into from
Apr 16, 2023

Conversation

alexandear
Copy link
Member

This PR removes ctx parameter from the Printer.Print method because it's not used in any of the printers.
Also, enable revive unused-parameter rule for detecting this. And fix occurred issues in other files.

@alexandear alexandear added the topic: cleanup Related to code, process, or doc cleanup label Apr 4, 2023
@alexandear alexandear force-pushed the remove-ctx-printer branch from 53a3b23 to 9151a1b Compare April 4, 2023 07:46
@alexandear alexandear force-pushed the remove-ctx-printer branch from 9151a1b to 346f96e Compare April 4, 2023 14:47
@ldez ldez self-requested a review April 5, 2023 07:12
Copy link
Member

@ldez ldez left a comment

Choose a reason for hiding this comment

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

LGTM

@ldez ldez merged commit 1948081 into golangci:master Apr 16, 2023
@ldez ldez added this to the v1.53 milestone Mar 6, 2024
@alexandear alexandear deleted the remove-ctx-printer branch April 11, 2024 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: cleanup Related to code, process, or doc cleanup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants