1
0
mirror of https://github.com/golang/go synced 2024-11-20 06:54:42 -07:00

go/ast: trivial cleanup (remove superfluous string conversion)

R=iant, bradfitz
CC=golang-dev
https://golang.org/cl/5430059
This commit is contained in:
Robert Griesemer 2011-11-23 16:20:55 -08:00
parent 77b0ad1e80
commit 63e48ccd8e

View File

@ -113,7 +113,7 @@ func NewPackage(fset *token.FileSet, files map[string]*File, importer Importer,
importErrors = true
continue
}
path, _ := strconv.Unquote(string(spec.Path.Value))
path, _ := strconv.Unquote(spec.Path.Value)
pkg, err := importer(imports, path)
if err != nil {
p.errorf(spec.Path.Pos(), "could not import %s (%s)", path, err)