early return if user not found

Signed-off-by: Hadi <[email protected]>
This commit is contained in:
Hadi
2025-09-17 21:39:32 +02:00
parent 0017d649d3
commit e572d1326a
+3
View File
@@ -39,6 +39,9 @@ func Username(settings github_recon_settings.Settings) (result UsernameResult, e
if err != nil {
return
}
if result.User == (UserResult{}) {
return
}
utils.PrintAvatar(settings, result.User.AvatarURL)
utils.PrintStruct(settings, result.User, 0)