only keep .yaml et .yml files
This commit is contained in:
parent
71b3833504
commit
e09db79396
1 changed files with 5 additions and 1 deletions
|
@ -113,7 +113,11 @@ func parser_visit(path string, f os.FileInfo, err error) error {
|
|||
var fauthor string
|
||||
var stage string
|
||||
//we only care about files
|
||||
if f == nil || f.IsDir() || strings.HasSuffix(f.Name(), "~") {
|
||||
if f == nil || f.IsDir() {
|
||||
return nil
|
||||
}
|
||||
//we only care about yaml files
|
||||
if !strings.HasSuffix(f.Name(), ".yaml") && !strings.HasSuffix(f.Name(), ".yml") {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue