go.tools/go/types: cleanup: remove unnecessary receiver
R=adonovan CC=golang-codereviews https://golang.org/cl/53810044
This commit is contained in:
parent
2845638157
commit
074bd4ac9c
|
@ -88,7 +88,7 @@ func (check *checker) arityMatch(s, init *ast.ValueSpec) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (check *checker) validatedImportPath(path string) (string, error) {
|
func validatedImportPath(path string) (string, error) {
|
||||||
s, err := strconv.Unquote(path)
|
s, err := strconv.Unquote(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
|
@ -171,7 +171,7 @@ func (check *checker) resolveFiles(files []*ast.File) {
|
||||||
case *ast.ImportSpec:
|
case *ast.ImportSpec:
|
||||||
// import package
|
// import package
|
||||||
var imp *Package
|
var imp *Package
|
||||||
path, err := check.validatedImportPath(s.Path.Value)
|
path, err := validatedImportPath(s.Path.Value)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
check.errorf(s.Path.Pos(), "invalid import path (%s)", err)
|
check.errorf(s.Path.Pos(), "invalid import path (%s)", err)
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue