Avoid double newline

Signed-off-by: Hadi <[email protected]>
This commit is contained in:
Hadi
2025-05-21 10:12:33 +02:00
parent 15458ab78e
commit e4cec2b07a
3 changed files with 20 additions and 5 deletions
+2
View File
@@ -92,5 +92,7 @@ func (r Recon) Email(email string) (response []EmailResult) {
if len(results) == 0 {
r.PrintInfo("INFO", "No commits found")
}
r.PrintNewline()
return
}
+13 -2
View File
@@ -48,9 +48,11 @@ func (r Recon) SshKeys(username string) (response []SSHKeyResult) {
r.PrintInfo("Verified", k.Verified)
r.PrintInfo("Last Used", k.LastUsed)
r.PrintInfo("Added By", k.AddedBy)
if i != len(sshKeys)-1 {
r.PrintNewline()
}
}
}
r.PrintNewline()
WaitForRateLimit(resp)
return
@@ -122,6 +124,9 @@ func (r Recon) GpgKeys(username string) (response []GPGKeyResult) {
r.PrintInfo(" Email n°", fmt.Sprintf("%d", j))
r.PrintInfo(" Email", email.Email)
r.PrintInfo(" Verified", email.Verified)
if j != len(k.Emails)-1 {
r.PrintNewline()
}
}
r.PrintInfo("Subkeys", fmt.Sprintf("%d", len(k.Subkeys)))
for j, subkey := range k.Subkeys {
@@ -131,11 +136,15 @@ func (r Recon) GpgKeys(username string) (response []GPGKeyResult) {
r.PrintInfo(" Subkey Created At", subkey.CreatedAt)
r.PrintInfo(" Subkey Primary Key ID", subkey.PrimaryKeyID)
r.PrintInfo(" Subkey Raw Key", subkey.RawKey)
}
if j != len(k.Subkeys)-1 {
r.PrintNewline()
}
}
if i != len(gpgKeys)-1 {
r.PrintNewline()
}
}
}
r.PrintNewline()
WaitForRateLimit(resp)
return
@@ -173,7 +182,9 @@ func (r Recon) SshSigningKeys(username string) (response []SSHSigningKeyResult)
r.PrintInfo("Title", k.Title)
r.PrintInfo("Created At", k.CreatedAt)
r.PrintInfo("Key", k.Key)
if i != len(signingKeys)-1 {
r.PrintNewline()
}
response = append(response, k)
}
}
+2
View File
@@ -32,7 +32,9 @@ func (r Recon) Orgs(username string) (response []OrgResult) {
r.PrintInfo("ID", o.ID)
r.PrintInfo("URL", o.URL)
r.PrintInfo("Description", o.Description)
if i != len(orgs)-1 {
r.PrintNewline()
}
response = append(response, o)
}
}