summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gwic.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/gwic.go b/gwic.go
index ace3fca..fdefdad 100644
--- a/gwic.go
+++ b/gwic.go
@@ -58,10 +58,7 @@ func feedworkers(wlist []*work, w string) []*work {
for _, wc := range wlist {
if wc.left == 0 {
wc.finish()
- // TODO: remove the right one?
- if len(wlist) >= 1 {
- ret = wlist[1:]
- }
+ ret = wlist[1:]
} else {
wc.c <- w
wc.left -= 1