Skip to content

Commit

Permalink
remove quotes around package name in diagnostic message
Browse files Browse the repository at this point in the history
Signed-off-by: Oliver Eikemeier <[email protected]>
  • Loading branch information
eikemeier committed Feb 3, 2025
1 parent 37f27fb commit c2538a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/cmd/compile/internal/types2/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"bytes"
"cmd/compile/internal/syntax"
"fmt"
"strconv"
"strings"
)

Expand Down Expand Up @@ -110,7 +109,7 @@ func (check *Checker) qualifier(pkg *Package) string {
}
// If the same package name was used by multiple packages, display the full path.
if len(check.pkgPathMap[pkg.name]) > 1 {
return strconv.Quote(pkg.path)
return pkg.path
}
return pkg.name
}
Expand Down
3 changes: 1 addition & 2 deletions src/go/types/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"fmt"
"go/ast"
"go/token"
"strconv"
"strings"
)

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

0 comments on commit c2538a4

Please sign in to comment.