return ok bool instead of error bool. fixes #22

This commit is contained in:
Nick Gauthier 2014-12-19 08:19:42 -05:00
parent 48fe666dbe
commit f61157f6a6
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ func writePipe(pipe chan interface{}) bool {
select {
case item, ok := <-pipe:
if !ok {
return errorFlag
return !errorFlag
} else {
switch item.(type) {