Skip to content

Commit

Permalink
fix: err not handled
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitri GRISARD committed Apr 5, 2023
1 parent 508ad33 commit 6944800
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/engine/provider/filesystem.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,10 @@ func (s *FileSystemSourceProvider) checkConditions(info os.FileInfo, extensions
// exlude terraform cache folders
if strings.Contains(info.Name(), ".terra") {
log.Info().Msgf("Directory ignored: %s", path)
s.AddExcluded([]string{info.Name()})
err := s.AddExcluded([]string{info.Name()})
if err != nil {
return true, nil
}
return true, filepath.SkipDir
}
if f, ok := s.excludes[info.Name()]; ok && containsFile(f, info) {
Expand Down

0 comments on commit 6944800

Please sign in to comment.