6
0
mirror of https://github.com/grdl/git-get.git synced 2026-02-06 16:52:57 +00:00

Fix issues found by nlreturn linter

This commit is contained in:
Grzegorz Dlugoszewski
2025-08-24 18:28:09 +02:00
parent 3b85a64c2d
commit ca8681f997
7 changed files with 8 additions and 0 deletions

View File

@@ -85,6 +85,7 @@ func (f *RepoFinder) Find() error {
gitPath := filepath.Join(path, dotgit)
if _, err := os.Stat(gitPath); err == nil {
f.addIfOk(path)
return fs.SkipDir // Skip this directory's contents since it's a repo
}