Skip to content

Commit

Permalink
Remove useless error check
Browse files Browse the repository at this point in the history
  • Loading branch information
morgo committed Mar 8, 2021
1 parent 4094264 commit 8ef9035
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions session/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -500,9 +500,6 @@ func getTiDBVar(s Session, name string) (sVal string, isNull bool, e error) {
if err != nil {
return "", true, errors.Trace(err)
}
if rs == nil {
return "", true, errors.New("Wrong number of Recordset")
}
defer terror.Call(rs.Close)
req := rs.NewChunk()
err = rs.Next(ctx, req)
Expand Down

0 comments on commit 8ef9035

Please sign in to comment.