Skip to content

Commit b9d6f11

Browse files
clean up detectors (#776)
1 parent d7123c6 commit b9d6f11

File tree

4 files changed

+1
-7
lines changed

4 files changed

+1
-7
lines changed

pkg/detectors/cexio/cexio.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"crypto/sha256"
77
"encoding/hex"
88
"encoding/json"
9-
"fmt"
109
"io"
1110
"net/http"
1211
"net/url"
@@ -98,9 +97,6 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result
9897
}
9998
bodyString := string(body)
10099
validResponse := strings.Contains(bodyString, `timestamp`)
101-
if err != nil {
102-
fmt.Print(err.Error())
103-
}
104100

105101
var responseObject Response
106102
if err := json.Unmarshal(body, &responseObject); err != nil {

pkg/detectors/courier/courier.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result
4141
continue
4242
}
4343
resMatch := strings.TrimSpace(match[1])
44-
fmt.Printf("\nresMatch: %s\n", resMatch)
4544

4645
s1 := detectors.Result{
4746
DetectorType: detectorspb.DetectorType_Courier,

pkg/detectors/edenai/edenai.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result
4141
continue
4242
}
4343
resMatch := strings.TrimSpace(match[1])
44-
fmt.Printf("\n\nresMatch: %s\n", resMatch)
4544

4645
s1 := detectors.Result{
4746
DetectorType: detectorspb.DetectorType_EdenAI,

pkg/detectors/okta/okta.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result
4848
// -H "Accept: application/json" \
4949
// -H "Content-Type: application/json" \
5050
// -H "Authorization: Bearer token" \
51-
// "https://subdomain.okta.com/api/v1/groups?limit=1"
51+
// "https://subdomain.okta.com/api/v1/users/me"
5252
//
5353

5454
url := fmt.Sprintf("https://%s/api/v1/users/me", domain)

0 commit comments

Comments
 (0)