Skip to content

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
Lines are unchanged, not sure why flagged now
  • Loading branch information
AndrewSisley committed Feb 1, 2022
1 parent 46bb7ae commit 4979346
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions db/collection_update.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ func (c *Collection) updateWithFilter(ctx context.Context, txn *Txn, filter inte
if err != nil {
return nil, err
}
if err := query.Start(); err != nil {
if err = query.Start(); err != nil {
return nil, err
}

Expand All @@ -262,8 +262,8 @@ func (c *Collection) updateWithFilter(ctx context.Context, txn *Txn, filter inte

// loop while we still have results from the filter query
for {
next, err := query.Next()
if err != nil {
next, nextErr := query.Next()
if nextErr != nil {
return nil, err
}
// if theres no more records from the query, jump out of the loop
Expand Down

0 comments on commit 4979346

Please sign in to comment.