Skip to content

Commit

Permalink
Only skip directories when rewriting godeps
Browse files Browse the repository at this point in the history
  • Loading branch information
FugiTech committed Jul 6, 2016
1 parent c8c8c77 commit 4d81d05
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions godep/strip/strip.go
Expand Up @@ -82,11 +82,11 @@ func stripGodepWorkspaceHandler(path string, info os.FileInfo, err error) error

func rewriteGodepfilesHandler(path string, info os.FileInfo, err error) error {
name := info.Name()
if name == "testdata" || name == "vendor" {
return filepath.SkipDir
}

if info.IsDir() {
if name == "testdata" || name == "vendor" {
return filepath.SkipDir
}
return nil
}

Expand Down

0 comments on commit 4d81d05

Please sign in to comment.