diff --git a/src/database/sql/sql.go b/src/database/sql/sql.go index 2146d96dc59..e6ef3fc6156 100644 --- a/src/database/sql/sql.go +++ b/src/database/sql/sql.go @@ -2987,10 +2987,7 @@ func (rs *Rows) Next() bool { doClose, ok = rs.nextLocked() }) if doClose { - err := rs.Close() - if err != nil { - rs.Close() - } + rs.Close() } return ok }