Skip to content

Commit 6031995

Browse files
chore: cleanup
1 parent 7fdb954 commit 6031995

File tree

2 files changed

+6
-26
lines changed

2 files changed

+6
-26
lines changed

internal/analysis/analysis.go

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -511,13 +511,6 @@ func (a *analysisOrchestrator) RunTest(ctx context.Context, orgId string, b bund
511511
testApi.WithReporting(reportingConfig.Report),
512512
)
513513

514-
fmt.Println("Creating test")
515-
bodyBytes, err := json.MarshalIndent(body, "", " ")
516-
if err != nil {
517-
return nil, err
518-
}
519-
fmt.Println(string(bodyBytes))
520-
521514
// create test
522515
resp, err := client.CreateTestWithApplicationVndAPIPlusJSONBody(ctx, orgUuid, &params, *body)
523516
if err != nil {
@@ -562,12 +555,6 @@ func (a *analysisOrchestrator) RunTestRemote(ctx context.Context, orgId string,
562555
params := testApi.CreateTestParams{Version: testApi.ApiVersion}
563556
projectId := cfg.ProjectId
564557
commitId := cfg.CommitId
565-
fmt.Println("Creating test")
566-
prettyBytes, err := json.MarshalIndent(cfg, "", " ")
567-
if err != nil {
568-
return nil, err
569-
}
570-
fmt.Println(string(prettyBytes))
571558

572559
if projectId == nil || commitId == nil {
573560
return nil, errors.New("projectId and commitId are required")
@@ -580,13 +567,6 @@ func (a *analysisOrchestrator) RunTestRemote(ctx context.Context, orgId string,
580567
testApi.WithProjectId(*projectId),
581568

582569
)
583-
fmt.Println("Creating test")
584-
prettyBytes, err = json.MarshalIndent(body, "", " ")
585-
if err != nil {
586-
return nil, err
587-
}
588-
fmt.Println(string(prettyBytes))
589-
590570
// create test
591571
bodyBytes, err := json.Marshal(body)
592572
if err != nil {
@@ -613,11 +593,6 @@ func (a *analysisOrchestrator) RunTestRemote(ctx context.Context, orgId string,
613593
case http.StatusCreated:
614594
// poll results
615595
result, pollErr := a.pollTestForFindings(ctx, client, orgUuid, parsedResponse.ApplicationvndApiJSON200.Data.Id)
616-
formattedResult, err := json.MarshalIndent(parsedResponse.ApplicationvndApiJSON200, "", " ")
617-
if err != nil {
618-
return nil, err
619-
}
620-
fmt.Println(string(formattedResult))
621596
tracker.End("Analysis complete.")
622597
return result, pollErr
623598
default:

internal/api/test/2024-12-21/client.go

Lines changed: 6 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)