mirror of
https://github.com/dolthub/dolt.git
synced 2026-02-11 18:49:14 -06:00
Merge pull request #10202 from dolthub/codeaucafe/1430b
[no-release-notes] Remove redundant beginTableCalled variable
This commit is contained in:
@@ -402,9 +402,7 @@ func TestLazyRowWriter_NoRowsWritten(t *testing.T) {
|
||||
mockDW := &mockDiffWriter{}
|
||||
realWriter := &mockRowWriter{}
|
||||
|
||||
beginTableCalled := false
|
||||
onFirstWrite := func() error {
|
||||
beginTableCalled = true
|
||||
return mockDW.BeginTable("fromTable", "toTable", false, false)
|
||||
}
|
||||
|
||||
@@ -417,7 +415,7 @@ func TestLazyRowWriter_NoRowsWritten(t *testing.T) {
|
||||
}
|
||||
|
||||
// BeginTable should NEVER have been called
|
||||
if beginTableCalled {
|
||||
if mockDW.beginTableCalled {
|
||||
t.Error("BeginTable() was called even though no rows were written - should have been lazy!")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user