Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/guru: fix incorrect case order in describe.go
Since *ast.CommClause implements ast.Stmt, type switch for it would never execute in the original code, it will always execute ast.Stmt branch. Moving concrete types before interfaces help in this case. Change-Id: Id84f2f7f3fac859029155d8e6debf4a8ef170b26 Reviewed-on: https://go-review.googlesource.com/c/153397 Run-TryBot: Brad Fitzpatrick <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Alan Donovan <[email protected]>
- Loading branch information