Skip to content

Commit

Permalink
remove mutex
Browse files Browse the repository at this point in the history
  • Loading branch information
orz25 committed Jun 16, 2024
1 parent cad75b1 commit dbc7a82
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions commands/audit/audit.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit dbc7a82

Please sign in to comment.