From: Robert Griesemer Date: Fri, 21 Sep 2012 19:54:25 +0000 (+1000) Subject: [release-branch.go1] go/build: tiny cleanup X-Git-Tag: go1.0.3~116 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=35b989ed7bb373d107e63f0dc71d4115966b84aa;p=gostls13.git [release-branch.go1] go/build: tiny cleanup ««« backport 30dfc01b473c 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 7a81d50303..c1145fa726 100644 --- a/src/pkg/go/build/build.go +++ b/src/pkg/go/build/build.go @@ -536,7 +536,7 @@ Found: return p, err } - pkg := string(pf.Name.Name) + pkg := pf.Name.Name if pkg == "documentation" { continue } @@ -570,7 +570,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)