mirror of https://github.com/golang/go.git
go/build: tiny cleanup
R=rsc CC=golang-dev https://golang.org/cl/6453083
This commit is contained in:
parent
e107742080
commit
f3a45d4695
|
|
@ -539,7 +539,7 @@ Found:
|
||||||
return p, err
|
return p, err
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg := string(pf.Name.Name)
|
pkg := pf.Name.Name
|
||||||
if pkg == "documentation" {
|
if pkg == "documentation" {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
@ -573,7 +573,7 @@ Found:
|
||||||
if !ok {
|
if !ok {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
quoted := string(spec.Path.Value)
|
quoted := spec.Path.Value
|
||||||
path, err := strconv.Unquote(quoted)
|
path, err := strconv.Unquote(quoted)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Panicf("%s: parser returned invalid quoted string: <%s>", filename, quoted)
|
log.Panicf("%s: parser returned invalid quoted string: <%s>", filename, quoted)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue