Skip to content
This repository was archived by the owner on Mar 9, 2019. It is now read-only.

Commit 32cc6eb

Browse files
committed
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.
1 parent fa5367d commit 32cc6eb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

db.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -737,9 +737,7 @@ retry:
737737

738738
// pass success, or bolt internal errors, to all callers
739739
for _, c := range b.calls {
740-
if c.err != nil {
741-
c.err <- err
742-
}
740+
c.err <- err
743741
}
744742
break retry
745743
}

0 commit comments

Comments
 (0)