Minor cleanup

This commit is contained in:
Richard Patel
2018-12-18 15:31:33 +01:00
parent 4b8275c7bf
commit b244cdae80
3 changed files with 11 additions and 13 deletions

View File

@@ -42,7 +42,7 @@ func (w *WorkerContext) Worker(results chan<- File) {
}
func (w *WorkerContext) step(results chan<- File, job Job) {
defer w.finishJob(&job)
defer w.finishJob()
var f File
@@ -175,7 +175,7 @@ func (w *WorkerContext) queueJob(job Job) {
}
}
func (w *WorkerContext) finishJob(job *Job) {
func (w *WorkerContext) finishJob() {
w.OD.Wait.Done()
}