Skip to content

Commit

Permalink
ignore close rows error
Browse files Browse the repository at this point in the history
  • Loading branch information
blockloop committed Nov 3, 2020
1 parent 98c5cec commit a53c288
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"errors"
"fmt"
"io"
"log"
"reflect"
"strings"
)
Expand Down Expand Up @@ -171,7 +170,5 @@ func structPointers(stct reflect.Value, cols []string, strict bool) []interface{
}

func closeRows(c io.Closer) {
if err := c.Close(); err != nil {
log.Printf("failed to close rows: %+v\n", err)
}
_ = c.Close()
}

0 comments on commit a53c288

Please sign in to comment.