Skip to content

Commit

Permalink
Merge pull request #25 from joeshaw/patch-1
Browse files Browse the repository at this point in the history
fix missed error assignments
  • Loading branch information
benbjohnson authored Feb 5, 2021
2 parents daadc79 + 69f1540 commit 7afa96e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sqlite/dial.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ func findDials(ctx context.Context, tx *Tx, filter wtf.DialFilter) (_ []*wtf.Dia
dials := make([]*wtf.Dial, 0)
for rows.Next() {
var dial wtf.Dial
if rows.Scan(
if err := rows.Scan(
&dial.ID,
&dial.UserID,
&dial.Name,
Expand Down Expand Up @@ -614,7 +614,7 @@ func findDialValueSlotsBetween(ctx context.Context, tx *Tx, id int, start, end t
// Iterate over rows and assign values to slots.
for rows.Next() {
var timestamp time.Time
if rows.Scan(&value, (*NullTime)(&timestamp)); err != nil {
if err := rows.Scan(&value, (*NullTime)(&timestamp)); err != nil {
return nil, err
}

Expand Down

0 comments on commit 7afa96e

Please sign in to comment.