Update godep in vendor
This commit is contained in:
7
vendor/github.com/tools/godep/list.go
generated
vendored
7
vendor/github.com/tools/godep/list.go
generated
vendored
@@ -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 {
|
||||
|
Reference in New Issue
Block a user