lib/db: Don't call backend.Commit twice (ref #6337) (#6342)

This commit is contained in:
Simon Frei 2020-02-14 08:11:24 +01:00 committed by GitHub
parent 71de6fe290
commit 05e23f1991
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -755,10 +755,7 @@ func (t *readWriteTransaction) withAllFolderTruncated(folder []byte, fn func(dev
return nil
}
}
if err := dbi.Error(); err != nil {
return err
}
return t.Commit()
return dbi.Error()
}
type marshaller interface {