Skip to content

Commit

Permalink
fix: handle empty list to scan for orchestrator (#1209)
Browse files Browse the repository at this point in the history
  • Loading branch information
cfabianski authored Aug 25, 2023
1 parent 9d3698f commit 1601958
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/commands/process/orchestrator/orchestrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ func (orchestrator *Orchestrator) waitForScan(fileComplete chan struct{}, totalC
}
}()

if totalCount == 0 {
log.Debug().Msgf("no files to scan")
return
}

for {
select {
case <-orchestrator.done:
Expand Down

0 comments on commit 1601958

Please sign in to comment.