Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
ahrav committed Sep 29, 2024
1 parent 06f2ea4 commit a523409
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions pkg/detectors/privatekey/privatekey.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,16 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result
go func() {
defer wg.Done()
data, err := lookupFingerprint(ctx, fingerprint, s.IncludeExpired)
if err == nil && data != nil {
extraData.Add("certificate_urls", strings.Join(data.CertificateURLs, ", "))
} else if err != nil {
if err == nil {
if data != nil {
extraData.Add("certificate_urls", strings.Join(data.CertificateURLs, ", "))
}
} else {
verificationErrors.Add(err)
}
}()

// Test SSH key against GitHub.
// Test SSH key against github.com.
wg.Add(1)
go func() {
defer wg.Done()
Expand All @@ -116,7 +118,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result
}
}()

// Test SSH key against GitLab.
// Test SSH key against gitlab.com.
wg.Add(1)
go func() {
defer wg.Done()
Expand Down

0 comments on commit a523409

Please sign in to comment.