fix bug with generate swagger.

This commit is contained in:
Sergey Lanzman 2016-12-12 22:35:39 +02:00
parent 2ff99d4ea7
commit cfc8658ab2
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ func parsePackagesFromDir(dirpath string) {
return nil
}
if fileInfo.Name() != "vendor" {
if !strings.Contains(fpath, "vendor") {
err = parsePackageFromDir(fpath)
if err != nil {
// Send the error to through the channel and continue walking