Skip to content

Commit

Permalink
Remove unnecessary if in batch handling
Browse files Browse the repository at this point in the history
This is safe, as the only place that creates call values always
explicitly sets err. It's a leftover from an earlier iteration of the
code.
  • Loading branch information
tv42 authored and heyitsanthony committed Nov 26, 2017
1 parent 32c383e commit bcfcdab
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions db.go
Original file line number Diff line number Diff line change
Expand Up @@ -802,9 +802,7 @@ retry:

// pass success, or bolt internal errors, to all callers
for _, c := range b.calls {
if c.err != nil {
c.err <- err
}
c.err <- err
}
break retry
}
Expand Down

0 comments on commit bcfcdab

Please sign in to comment.