Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f61157f

Browse files
committed
return ok bool instead of error bool. fixes golang-migrate#22
1 parent 48fe666 commit f61157f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ func writePipe(pipe chan interface{}) bool {
162162
select {
163163
case item, ok := <-pipe:
164164
if !ok {
165-
return errorFlag
165+
return !errorFlag
166166
} else {
167167
switch item.(type) {
168168

0 commit comments

Comments
 (0)