1
0
mirror of https://github.com/beego/bee.git synced 2024-10-31 18:50:54 +00:00

fix warning

This commit is contained in:
John 2019-05-28 16:55:07 +08:00
parent 5d223c6513
commit 8357e26a9f

View File

@ -1400,7 +1400,7 @@ func analyseImportPkg(ims []*ast.ImportSpec, realType string) error {
}
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)
pkgCache[pkgPath] = pkgName
}