Skip to content

Commit dd78a1c

Browse files
committed
Fix a place where we would swallow an error from FileWriter.Close
1 parent 80a02b4 commit dd78a1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

file_writer_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
func assertClose(t *testing.T, w *FileWriter) {
1919
var err error
2020
for i := 0; i < 5; i++ {
21-
err := w.Close()
21+
err = w.Close()
2222
if IsErrReplicating(err) {
2323
time.Sleep(200 * time.Millisecond)
2424
continue

0 commit comments

Comments
 (0)