Skip to content

Commit

Permalink
get rid of old go-ism of needing to return an explicit nil after an e…
Browse files Browse the repository at this point in the history
…rror
  • Loading branch information
jmoiron committed May 30, 2013
1 parent fed2043 commit fb6eb3c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions sqlx.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,7 @@ func (r *Row) Scan(dest ...interface{}) error {
if !r.rows.Next() {
return sql.ErrNoRows
}
err := r.rows.Scan(dest...)
if err != nil {
return err
}

return nil
return r.rows.Scan(dest...)
}

func (r *Row) Columns() ([]string, error) {
Expand Down

0 comments on commit fb6eb3c

Please sign in to comment.