contrib/git-changes-action/detector/tree/add.go
Function AddDirectoryPaths
has 5 return statements (exceeds 4 allowed). Open
Open
func AddDirectoryPaths(tree Tree, dirPath, trimPrefix string) error {
err := filepath.Walk(dirPath, func(path string, _ os.FileInfo, err error) error {
if err != nil {
return fmt.Errorf("error walking path %s: %w", path, err)
}