summaryrefslogtreecommitdiff
path: root/src/cmd/goinstall
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-03-30 10:51:11 -0700
committerRuss Cox <rsc@golang.org>2010-03-30 10:51:11 -0700
commit0bb18c1baaaea84c30e88af4103e207ee73ea733 (patch)
tree8b338a7affb56cf4142d66f8a8cd691366fdf7d1 /src/cmd/goinstall
parent03c9611be0830da3cdb670cf59239eafd8bb4395 (diff)
downloadgo-0bb18c1baaaea84c30e88af4103e207ee73ea733.tar.gz
simplify various code using new map index rule
R=r CC=golang-dev http://codereview.appspot.com/833044
Diffstat (limited to 'src/cmd/goinstall')
-rw-r--r--src/cmd/goinstall/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/goinstall/main.go b/src/cmd/goinstall/main.go
index bc6301baa..59e66288b 100644
--- a/src/cmd/goinstall/main.go
+++ b/src/cmd/goinstall/main.go
@@ -85,7 +85,7 @@ func printDeps(pkg string) {
// 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: