From 2d01c1639fd2b748d74df58cf1129589b67c0f8b Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Wed, 17 Sep 2025 19:47:50 +0200 Subject: [PATCH] Fix isDir condition Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com> --- github-recon/username/deep.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/github-recon/username/deep.go b/github-recon/username/deep.go index a1278dd..d9751da 100644 --- a/github-recon/username/deep.go +++ b/github-recon/username/deep.go @@ -334,13 +334,13 @@ func findEmailsAndOccurrencesInDir(rootPath string, username string) (Emails, er if err != nil { return err } - if !d.IsDir() { + if d.Type().IsRegular() { if strings.Contains(path, ".git/logs/") { return nil } content, err := os.ReadFile(path) if err != nil { - return err + return nil } currentFileEmails := emailRegex.FindAllString(string(content), -1)