Skip to content

Commit

Permalink
Do not queue empty items.
Browse files Browse the repository at this point in the history
  • Loading branch information
qrpike committed Mar 28, 2019
1 parent 3c5a005 commit 481c2bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion process.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ func ( p *Processor ) requestErrandToProcess(){
fmt.Println("Error requesting errand to process:", err)
return
}
p.ErrandQueue <- &errandRes.Results
if errandRes.Results.ID != "" {
p.ErrandQueue <- &errandRes.Results
}
}


Expand Down

0 comments on commit 481c2bd

Please sign in to comment.