x/tools/internal/imports: redundant import name is not removed #33294
Labels
FeatureRequest
Issues asking for a new feature that does not need a proposal.
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I've ran goimports built on revision 2e34cfc on the following file:
What did you expect to see?
The redundant import alias is removed.
What did you see instead?
Nothing is changed.
Looks like introduced by 9bea2ec: the imp.name != "" check prevents redundant import cleanup.
The text was updated successfully, but these errors were encountered: