Remove unnecessary if in batch handling

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.
pull/68/head
Tommi Virtanen 2017-11-17 20:00:15 -07:00 committed by Anthony Romano
parent 32c383e75c
commit bcfcdab742
1 changed files with 1 additions and 3 deletions

4
db.go
View File

@ -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
}