Skip to content

Commit f37068f

Browse files
committed
remove quotes around package name in diagnostic message
Signed-off-by: Oliver Eikemeier <[email protected]>
1 parent fba83cd commit f37068f

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/cmd/compile/internal/types2/format.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import (
1010
"bytes"
1111
"cmd/compile/internal/syntax"
1212
"fmt"
13-
"strconv"
1413
"strings"
1514
)
1615

@@ -110,7 +109,7 @@ func (check *Checker) qualifier(pkg *Package) string {
110109
}
111110
// If the same package name was used by multiple packages, display the full path.
112111
if len(check.pkgPathMap[pkg.name]) > 1 {
113-
return strconv.Quote(pkg.path)
112+
return pkg.path
114113
}
115114
return pkg.name
116115
}

src/go/types/format.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import (
1111
"fmt"
1212
"go/ast"
1313
"go/token"
14-
"strconv"
1514
"strings"
1615
)
1716

@@ -110,7 +109,7 @@ func (check *Checker) qualifier(pkg *Package) string {
110109
}
111110
// If the same package name was used by multiple packages, display the full path.
112111
if len(check.pkgPathMap[pkg.name]) > 1 {
113-
return strconv.Quote(pkg.path)
112+
return pkg.path
114113
}
115114
return pkg.name
116115
}

0 commit comments

Comments
 (0)