From 35b989ed7bb373d107e63f0dc71d4115966b84aa Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Sat, 22 Sep 2012 05:54:25 +1000 Subject: [PATCH] [release-branch.go1] go/build: tiny cleanup MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit ««« backport 30dfc01b473c go/build: tiny cleanup R=rsc CC=golang-dev https://golang.org/cl/6453083 »»» --- src/pkg/go/build/build.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.50.0