mirror of https://github.com/golang/go.git
If there is a return statement that is guaranteed to execute in the selection to extract to function, then the result of calling the extracted function can be directly returned. Updates golang/go#37170 Change-Id: I6454e4107d670e4a1bc9048b2e1073fc80fc78ab Reviewed-on: https://go-review.googlesource.com/c/tools/+/312469 Trust: Suzy Mueller <suzmue@golang.org> Run-TryBot: Suzy Mueller <suzmue@golang.org> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org> |
||
|---|---|---|
| .. | ||
| fillreturns | ||
| fillstruct | ||
| nonewvars | ||
| noresultvalues | ||
| simplifycompositelit | ||
| simplifyrange | ||
| simplifyslice | ||
| undeclaredname | ||
| unusedparams | ||