diff options
| author | Robert Griesemer <gri@golang.org> | 2012-08-03 10:45:02 -0700 |
|---|---|---|
| committer | Robert Griesemer <gri@golang.org> | 2012-08-03 10:45:02 -0700 |
| commit | f3a45d4695d332b5964e11f648c330b2f11980b8 (patch) | |
| tree | 20dbb504241d68af05bed88d58b3053e6fea1c3c /src | |
| parent | e1077420807882bd52fd4857100a199b9afc5909 (diff) | |
| download | go-f3a45d4695d332b5964e11f648c330b2f11980b8.tar.xz | |
go/build: tiny cleanup
R=rsc
CC=golang-dev
https://golang.org/cl/6453083
Diffstat (limited to 'src')
| -rw-r--r-- | src/pkg/go/build/build.go | 4 |
1 files changed, 2 insertions, 2 deletions
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) |
