ch3-02 review

This commit is contained in:
chai2010
2015-12-27 15:39:36 +08:00
parent 6978661750
commit ef2f22bcd0
2 changed files with 25 additions and 26 deletions

View File

@@ -68,7 +68,7 @@ func main() {
log.Fatal("filepath.Walk: ", err)
return err
}
if info.IsDir() || path == "node_modules" {
if info.IsDir() {
return nil
}
relpath, err := filepath.Rel(dir, path)