diff options
author | Tommi Virtanen <tv@eagain.net> | 2017-11-17 20:00:15 -0700 |
---|---|---|
committer | Tommi Virtanen <tv@eagain.net> | 2017-11-17 20:00:15 -0700 |
commit | 32cc6eb1665364eddbb173120a40c37f1f3cfcb5 (patch) | |
tree | 62a770319af3f775c28f2434339a2ab2593bf473 | |
parent | README (diff) | |
download | dedo-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.go | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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 } |