]> Cypherpunks repositories - gostls13.git/commitdiff
go/ast: trivial cleanup (remove superfluous string conversion)
authorRobert Griesemer <gri@golang.org>
Thu, 24 Nov 2011 00:20:55 +0000 (16:20 -0800)
committerRobert Griesemer <gri@golang.org>
Thu, 24 Nov 2011 00:20:55 +0000 (16:20 -0800)
R=iant, bradfitz
CC=golang-dev
https://golang.org/cl/5430059

src/pkg/go/ast/resolve.go

index b24688d2ea3960d390f951f8ade2d4d1aaab2937..c7c8e7c101e4faae0bd96c258afe4bf1f741c6b2 100644 (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)