summaryrefslogtreecommitdiff
path: root/backend.go
diff options
context:
space:
mode:
Diffstat (limited to 'backend.go')
-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
}