diff --git a/commands/audit/audit.go b/commands/audit/audit.go index a5eacb24..8b776647 100644 --- a/commands/audit/audit.go +++ b/commands/audit/audit.go @@ -232,9 +232,7 @@ func RunAudit(auditParams *AuditParams) (results *xrayutils.Results, err error) go func() { defer auditParallelRunner.ErrWg.Done() for e := range auditParallelRunner.ErrorsQueue { - auditParallelRunner.ResultsMu.Lock() results.ScansErr = errors.Join(results.ScansErr, e) - auditParallelRunner.ResultsMu.Unlock() } }() if auditParams.Progress() != nil {