x/tools/gopls/internal/analysis/modernize: minmax doesn't work with return statements #72830
Labels
FeatureRequest
Issues asking for a new feature that does not need a proposal.
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
gopls isn't emitting any diagnostics for the following code:
but it could suggest replacing the if/else with
return min(a, b)
.The text was updated successfully, but these errors were encountered: