From 76b5f43dcceafb90baa43a5b0c22cfd926776c3d Mon Sep 17 00:00:00 2001 From: attiasas Date: Sun, 24 Nov 2024 11:38:25 +0200 Subject: [PATCH] fix static --- scanrepository/scanrepository.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scanrepository/scanrepository.go b/scanrepository/scanrepository.go index 81bdd1e88..503a9d50d 100644 --- a/scanrepository/scanrepository.go +++ b/scanrepository/scanrepository.go @@ -128,11 +128,11 @@ func (cfp *ScanRepositoryCmd) scanAndFixBranch(repository *utils.Repository) (er for i := range repository.Projects { cfp.scanDetails.Project = &repository.Projects[i] cfp.projectTech = []techutils.Technology{} - findings := 0 - if findings, err = cfp.scanAndFixProject(repository); err != nil { - return + if findings, e := cfp.scanAndFixProject(repository); e != nil { + return e + } else { + totalFindings += findings } - totalFindings += findings } return