From e572d1326a66183f3570ad192e41482e1d5117a4 Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Wed, 17 Sep 2025 21:39:32 +0200 Subject: [PATCH] early return if user not found Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com> --- github-recon/username/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/github-recon/username/main.go b/github-recon/username/main.go index ab11dd7..ce4caae 100644 --- a/github-recon/username/main.go +++ b/github-recon/username/main.go @@ -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)