]> Cypherpunks repositories - gostls13.git/commitdiff
[release-branch.go1] go/build: tiny cleanup
authorRobert Griesemer <gri@golang.org>
Fri, 21 Sep 2012 19:54:25 +0000 (05:54 +1000)
committerRobert Griesemer <gri@golang.org>
Fri, 21 Sep 2012 19:54:25 +0000 (05:54 +1000)
««« backport 30dfc01b473c
go/build: tiny cleanup

R=rsc
CC=golang-dev
https://golang.org/cl/6453083

»»»

src/pkg/go/build/build.go

index 7a81d50303dd71ba8ec6eb2f02ac0f38feeba48b..c1145fa726c346ddae297a15639f30cf1b50e287 100644 (file)
@@ -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)