1
0
mirror of https://github.com/golang/go synced 2024-11-22 04:14:42 -07:00

go/build: tiny cleanup

R=rsc
CC=golang-dev
https://golang.org/cl/6453083
This commit is contained in:
Robert Griesemer 2012-08-03 10:45:02 -07:00
parent e107742080
commit f3a45d4695

View File

@ -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)