Skip to content

Commit

Permalink
add sanity check in loop
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Korczynski <[email protected]>
  • Loading branch information
AdamKorcz committed Dec 4, 2023
1 parent 4eb17db commit 07e38c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions checks/evaluation/binary_artifacts.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ func BinaryArtifacts(name string,

for i := range findings {
f := &findings[i]
if f.Outcome != finding.OutcomeNegative {
continue

Check warning on line 45 in checks/evaluation/binary_artifacts.go

View check run for this annotation

Codecov / codecov/patch

checks/evaluation/binary_artifacts.go#L45

Added line #L45 was not covered by tests
}
dl.Warn(&checker.LogMessage{
Path: f.Location.Path,
Type: f.Location.Type,
Expand Down

0 comments on commit 07e38c7

Please sign in to comment.