mirror of
https://github.com/beego/bee.git
synced 2024-11-24 08:30:53 +00:00
fix warning
This commit is contained in:
parent
5d223c6513
commit
8357e26a9f
@ -1400,7 +1400,7 @@ func analyseImportPkg(ims []*ast.ImportSpec, realType string) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, pkg := range folderPkgs {
|
for _, pkg := range folderPkgs {
|
||||||
if pkgName == pkg.Name || pkgName == fmt.Sprintf("%s", im.Name) {
|
if pkgName == pkg.Name || pkgName == im.Name.Name {
|
||||||
astPkgs = append(astPkgs, pkg)
|
astPkgs = append(astPkgs, pkg)
|
||||||
pkgCache[pkgPath] = pkgName
|
pkgCache[pkgPath] = pkgName
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user