Update godep in vendor

This commit is contained in:
Christoph Blecker
2018-04-02 12:57:41 -07:00
parent ba71e6307a
commit 0828b19996
21 changed files with 70 additions and 133 deletions

View File

@@ -54,10 +54,7 @@ func (ds *depScanner) Next() (*build.Package, string) {
// Continue looping?
func (ds *depScanner) Continue() bool {
if len(ds.todo) > 0 {
return true
}
return false
return len(ds.todo) > 0
}
// Add a package and imports to the depScanner. Skips already processed/pending package/import combos
@@ -94,7 +91,7 @@ func fullPackageInDir(dir string) (*build.Package, error) {
var err error
pkg, ok := pkgCache[dir]
if !ok {
pkg, err = build.ImportDir(dir, build.FindOnly)
pkg, _ = build.ImportDir(dir, build.FindOnly)
if pkg.Goroot {
pkg, err = build.ImportDir(pkg.Dir, 0)
} else {