summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-11-30 18:55:36 -0500
committerLuke Shumaker <lukeshu@lukeshu.com>2017-11-30 18:55:36 -0500
commitdeb826c9c18f26652e565a013e2d00929c0b8a35 (patch)
tree360a0477e33d2e23252e6e2a8da4b2fd49adf965
parent221873029a6166acaba1fef37508f9f1544180cd (diff)
whoops, fix Backend.Do
-rw-r--r--backend.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend.go b/backend.go
index 7e1c50b..96cdbbf 100644
--- a/backend.go
+++ b/backend.go
@@ -55,7 +55,7 @@ func NewBackend(fastImport io.WriteCloser, catBlob io.Reader, onErr func(error)
// will panic if Cmd is a type that may only be used in a commit but
// we aren't in a commit.
func (b *Backend) Do(cmd Cmd) error {
- if b.err == nil {
+ if b.err != nil {
return b.err
}