Check repositories length

Signed-off-by: Hadi <[email protected]>
This commit is contained in:
Hadi
2025-09-17 21:10:35 +02:00
parent dab0ba2b38
commit 325397dfef
+5
View File
@@ -139,6 +139,11 @@ func DeepScan(s github_recon_settings.Settings) (response DeepScanResult) {
}
s.Logger.Info("Cloned all repositories", "path", tmp_folder)
if len(repositories) == 0 {
s.Logger.Info("No repositories found for the user, skipping deep scan.")
return
}
authorOccurrences := Authors{}
mapAuthorToIndex := make(map[string]int)
for _, repo := range repositories {