From f61157f6a61c8916feb62c8f878faabf2378644b Mon Sep 17 00:00:00 2001 From: Nick Gauthier Date: Fri, 19 Dec 2014 08:19:42 -0500 Subject: [PATCH] return ok bool instead of error bool. fixes #22 --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index eeea417..e18fa20 100644 --- a/main.go +++ b/main.go @@ -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) {