mirror of
https://github.com/golang/go
synced 2024-11-20 09:34:52 -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:
parent
77b0ad1e80
commit
63e48ccd8e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user