Skip to content

Commit

Permalink
Remove systemout reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclerc-cio committed Nov 22, 2024
1 parent 8f4f69a commit f41f553
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 38 deletions.
4 changes: 4 additions & 0 deletions approval_name.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ func findFileName() (*string, error) {
return nil, fmt.Errorf("approvals: could not find the test method")
}

if lastFrame == nil {
return nil, fmt.Errorf("approvals: could not find the last frame")
}

return &lastFrame.File, nil
}

Expand Down
5 changes: 2 additions & 3 deletions reporters/continuous_integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ func (s *continuousIntegration) Report(approved, received string) bool {

if exists {
ci, err := strconv.ParseBool(value)
if err == nil && ci {
systemout := NewSystemoutReporter()
return systemout.Report(approved, received)
if err == nil {
return ci
}
}

Expand Down
35 changes: 0 additions & 35 deletions reporters/systemout_reporter.go

This file was deleted.

0 comments on commit f41f553

Please sign in to comment.