Skip to content

Commit

Permalink
remove filtering
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 7a63302 commit 7cb09fc
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions checks/raw/binary_artifact.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,11 @@ func excludeValidatedGradleWrappers(c clients.RepoClient, files []checker.File)
}
// It has been confirmed that latest commit has validated JARs!
// Remove Gradle wrapper JARs from files.
filterFiles := []checker.File{}
for _, f := range files {
if filepath.Base(f.Path) == "gradle-wrapper.jar" {
f.Type = finding.FileTypeGradleWrapper
for i := range files {
if filepath.Base(files[i].Path) == "gradle-wrapper.jar" {
files[i].Type = finding.FileTypeGradleWrapper
}
filterFiles = append(filterFiles, f)
}
files = filterFiles
return files, nil
}

Expand Down

0 comments on commit 7cb09fc

Please sign in to comment.