simplify various code using new map index rule
R=r
CC=golang-dev
https://golang.org/cl/833044
diff --git a/src/cmd/goinstall/main.go b/src/cmd/goinstall/main.go
index bc6301b..59e6628 100644
--- a/src/cmd/goinstall/main.go
+++ b/src/cmd/goinstall/main.go
@@ -85,7 +85,7 @@
// install installs the package named by path, which is needed by parent.
func install(pkg, parent string) {
// Make sure we're not already trying to install pkg.
- switch v, _ := visit[pkg]; v {
+ switch visit[pkg] {
case done:
return
case visiting: