From: Robert Griesemer Date: Thu, 24 Nov 2011 00:20:55 +0000 (-0800) Subject: go/ast: trivial cleanup (remove superfluous string conversion) X-Git-Tag: weekly.2011-12-01~66 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=63e48ccd8ea9399b411bf092f53ad8cd606946a0;p=gostls13.git go/ast: trivial cleanup (remove superfluous string conversion) R=iant, bradfitz CC=golang-dev https://golang.org/cl/5430059 --- diff --git a/src/pkg/go/ast/resolve.go b/src/pkg/go/ast/resolve.go index b24688d2ea..c7c8e7c101 100644 --- a/src/pkg/go/ast/resolve.go +++ b/src/pkg/go/ast/resolve.go @@ -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)