From 7cb09fcc6543fdebc8ea57e337aa79c0dd326cc6 Mon Sep 17 00:00:00 2001 From: Adam Korczynski Date: Mon, 4 Dec 2023 13:44:54 +0000 Subject: [PATCH] remove filtering Signed-off-by: Adam Korczynski --- checks/raw/binary_artifact.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/checks/raw/binary_artifact.go b/checks/raw/binary_artifact.go index a2e2f33f8ee..3c2461e3985 100644 --- a/checks/raw/binary_artifact.go +++ b/checks/raw/binary_artifact.go @@ -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 }