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

Update conditions around unused functions #23

Merged
merged 1 commit into from
Jun 11, 2024
Merged

Update conditions around unused functions #23

merged 1 commit into from
Jun 11, 2024

Conversation

pbrisbin
Copy link
Member

@pbrisbin pbrisbin commented Jun 5, 2024

This is behavior neutral, but it corrects that fact that we output
"unused functions found" for any error, regardless of the version of
weeder (i.e. even when we can trust its exit code to know). Now this
should output "unused functions found" or "some other error" correctly.

We did the code the way it was originally to minimize diff when
introducing the logic based on weeder version, which required larger
changes elsewhere.

@pbrisbin pbrisbin requested a review from stackptr June 7, 2024 18:07
@pbrisbin pbrisbin marked this pull request as ready for review June 7, 2024 18:07
This is behavior neutral, but it corrects that fact that we output
"unused functions found" for any error, regardless of the version of
weeder (i.e. even when we can trust its exit code to know). Now this
should output "unused functions found" or "some other error" correctly.

We did the code the way it was originally to minimize diff when
introducing the logic based on weeder version, which required larger
changes elsewhere.
@pbrisbin pbrisbin enabled auto-merge (rebase) June 11, 2024 18:36
@pbrisbin pbrisbin merged commit 95e5691 into main Jun 11, 2024
6 checks passed
@pbrisbin pbrisbin deleted the pb/message branch June 11, 2024 18:36
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