aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTommi Virtanen <tv@eagain.net>2017-11-17 20:00:15 -0700
committerTommi Virtanen <tv@eagain.net>2017-11-17 20:00:15 -0700
commit32cc6eb1665364eddbb173120a40c37f1f3cfcb5 (patch)
tree62a770319af3f775c28f2434339a2ab2593bf473
parentREADME (diff)
downloaddedo-32cc6eb1665364eddbb173120a40c37f1f3cfcb5.tar.gz
dedo-32cc6eb1665364eddbb173120a40c37f1f3cfcb5.tar.xz
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.
-rw-r--r--db.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/db.go b/db.go
index f352ff1..cc3596f 100644
--- a/db.go
+++ b/db.go
@@ -737,9 +737,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
}