From: Robert Griesemer Date: Fri, 3 Aug 2012 17:45:02 +0000 (-0700) Subject: go/build: tiny cleanup X-Git-Tag: go1.1rc2~2713 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=f3a45d4695d332b5964e11f648c330b2f11980b8;p=gostls13.git go/build: tiny cleanup R=rsc CC=golang-dev https://golang.org/cl/6453083 --- diff --git a/src/pkg/go/build/build.go b/src/pkg/go/build/build.go index c3e0e8e69c..ef7433883c 100644 --- a/src/pkg/go/build/build.go +++ b/src/pkg/go/build/build.go @@ -539,7 +539,7 @@ Found: return p, err } - pkg := string(pf.Name.Name) + pkg := pf.Name.Name if pkg == "documentation" { continue } @@ -573,7 +573,7 @@ Found: if !ok { continue } - quoted := string(spec.Path.Value) + quoted := spec.Path.Value path, err := strconv.Unquote(quoted) if err != nil { log.Panicf("%s: parser returned invalid quoted string: <%s>", filename, quoted)