From deb826c9c18f26652e565a013e2d00929c0b8a35 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 30 Nov 2017 18:55:36 -0500 Subject: whoops, fix Backend.Do --- backend.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- cgit v1.2.3-2-g168b